model.netinfo
model.netinfo
ProcessInfo
dataclass
Store process metadata for a socket record.
Source code in model/netinfo.py
8 9 10 11 12 13 14 15 16 | |
NetInfoBackend
Bases: Protocol
Backend interface for collecting socket records.
Source code in model/netinfo.py
19 20 21 22 23 | |
get_data()
Return connection records with socket and process fields.
Source code in model/netinfo.py
22 23 | |
NetInfo
Facade that selects the correct backend for the current OS.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
allowed_statuses
|
set[str] | None
|
If set, include only TCP connections with a status in this set. Always include UDP sockets. |
None
|
Source code in model/netinfo.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | |
get_data()
Return connection records with socket and process fields.
Source code in model/netinfo.py
39 40 41 | |