Registry / networking / netstat2

netstat2

JSON →
library0.11.2rscratesunverified

Cross-platform library to retrieve network socket information, such as active connections and listening ports.

# Cargo.toml [dependencies] netstat2 = "0.11.2"
INSTALL
IMPORT
SIG · NETSTAT2
N
netstat2
networkingrustv0.11.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

get_sockets_info
use netstat2::get_sockets_info;

Retrieves and prints information about all network sockets.

use netstat2::get_sockets_info; fn main() { let sockets = get_sockets_info().unwrap(); for socket in sockets { println!("Socket: {:?}", socket); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.11.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
netstat2 — cargo add netstat2 · libregistry