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

Method _toggle_live

Source/Module/user_interface.py:278–282  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

276 self.live_iface.set(ifaces[0])
277
278 def _toggle_live(self) -> None:
279 if self._live_engine and self._live_engine.is_running():
280 self._stop_live()
281 else:
282 self._start_live()
283
284 def _start_live(self) -> None:
285 iface = self.live_iface.get().strip()

Callers

nothing calls this directly

Calls 3

_stop_liveMethod · 0.95
_start_liveMethod · 0.95
is_runningMethod · 0.80

Tested by

no test coverage detected