Module process
Available on crate feature
net only.Expand description
Inspect the network sockets owned by a process.
These synchronous OS queries return snapshots, not process identities or authorization decisions: a process can exit and its PID can be reused. Retain a child/process handle and check its lifetime when identifying a child.
Structs§
- Process
Socket - A TCP listener or bound UDP endpoint owned by a process.
Functions§
- listening_
sockets - Query TCP listeners and bound UDP endpoints owned by
pid.