MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / connections

Function connections

mitmproxy/platform/windows.py:592–597  ·  view source on GitHub ↗

List all TCP connections and the associated PIDs.

()

Source from the content-addressed store, hash-verified

590
591 @cli.command()
592 def connections():
593 """List all TCP connections and the associated PIDs."""
594 connections = TcpConnectionTable()
595 connections.refresh()
596 for (ip, port), pid in connections.items():
597 print(f"{ip}:{port} -> {pid}")
598
599 cli()

Callers

nothing calls this directly

Calls 3

refreshMethod · 0.95
TcpConnectionTableClass · 0.85
itemsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…