Crate netstat

source ·
Expand description

Cross-platform library to retrieve network sockets information. Tries to be optimal by using low-level OS APIs instead of command line utilities. Provides unified interface and returns data structures which may have additional fields depending on platform.

Structs

Set of address families.
Set of protocols.
General socket information.
TCP-specific socket information.
UDP-specific socket information.

Enums

General error type.
Protocol-specific socket information.
State of TCP connection.

Functions

Retrieve sockets information as a vector. Short-circuits on any error along the way.
Iterate through sockets information.