def __init__(self, config, name=None): self.logger = logging.getLogger(__name__) Sink.__init__(self, name=name) self.csv_file = config.output_file self.csv_writer = None if self.csv_file is not None: self.csv_writer = writer(self.csv_file, delimiter=";") self.logger.info("CSV exporter initialised")
def __init__(self, iface=None, name=None): Sink.__init__(self, name=name) if iface is None: iface = conf.iface self.iface = iface
def __init__(self, fname, name=None): Sink.__init__(self, name=name) self.f = PcapWriter(fname)
def __init__(self): self.logger = logging.getLogger(__name__) Sink.__init__(self) self.logger.info("Console initialised")
def __init__(self, fname, name=None, linktype=None): Sink.__init__(self, name=name) self.fname = fname self.f = None self.linktype = linktype
def __init__(self, fname, name=None, linktype=None): # type: (str, Optional[str], Optional[int]) -> None Sink.__init__(self, name=name) self.fname = fname self.f = None # type: Optional[PcapWriter] self.linktype = linktype
def __init__(self, iface=None, name=None): # type: (Optional[_GlobInterfaceType], Optional[str]) -> None Sink.__init__(self, name=name) if iface is None: iface = conf.iface self.iface = iface