MCPcopy Create free account
hub / github.com/srixivas/PcapXray / __init__

Method __init__

Source/Module/pcap_reader.py:208–215  ·  view source on GitHub ↗
(self, iface: str)

Source from the content-addressed store, hash-verified

206 """
207
208 def __init__(self, iface: str) -> None:
209 self._iface = iface
210 self._sniffer = None
211 self._lock = threading.Lock()
212 self.packet_count = 0
213 self._dns_candidates: dict[str, str] = {}
214 _reset_memory()
215 log.info("LivePcapEngine: interface=%s", iface)
216
217 def start(self) -> None:
218 from scapy.all import AsyncSniffer

Callers

nothing calls this directly

Calls 1

_reset_memoryFunction · 0.85

Tested by

no test coverage detected