Skip to main content

Module process

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§

ProcessSocket
A TCP listener or bound UDP endpoint owned by a process.

Functions§

listening_sockets
Query TCP listeners and bound UDP endpoints owned by pid.