MCPcopy
hub / github.com/srixivas/PcapXray / start

Method start

Source/Module/pcap_reader.py:217–221  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

215 log.info("LivePcapEngine: interface=%s", iface)
216
217 def start(self) -> None:
218 from scapy.all import AsyncSniffer
219 self._sniffer = AsyncSniffer(iface=self._iface, prn=self._on_packet, store=False)
220 self._sniffer.start()
221 log.info("LivePcapEngine: capture started on %s", self._iface)
222
223 def stop(self) -> None:
224 if self._sniffer and self._sniffer.running:

Callers 5

get_consensus_dataMethod · 0.80
_start_liveMethod · 0.80
_run_in_threadMethod · 0.80
pcap_analyseMethod · 0.80
generate_graphMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected