List all TCP connections and the associated PIDs.
()
| 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() |
nothing calls this directly
no test coverage detected
searching dependent graphs…