(self, pkt)
accepts a either a single packet or a list of packets
        to be written to the dumpfile
accepts a either a single packet or a list of packets
        to be written to the dumpfile
accepts a either a single packet or a list of packets to be written to the dumpfile
def write(self, pkt):
        """accepts a either a single packet or a list of packets
        to be written to the dumpfile
        """
        if not self.header_present:
            self._write_header(pkt)
        if type(pkt) is str:
            self._write_packet(pkt)
        else:
            for p in pkt:
                self._write_packet(p)
def write ( self , pkt ) : if not self . header_present : self . _write_header ( pkt ) if type ( pkt ) is str : self . _write_packet ( pkt ) else : for p in pkt : self . _write_packet ( p )