Registry / networking / os-socketaddr

os-socketaddr

JSON →
library0.2.5rscratesunverified

A type for handling platform-native socket addresses (struct sockaddr).

# Cargo.toml [dependencies] os_socketaddr = "0.2.5"
INSTALL
IMPORT
SIG · OS-SOCKETADDR
O
os-socketaddr
networkingrustv0.2.5
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.

OsSocketAddr
use os_socketaddr::OsSocketAddr;

Creates a new platform-native socket address.

use os_socketaddr::OsSocketAddr; fn main() { let addr = OsSocketAddr::new(); println!("Socket address created"); }
Debug
Known issues
gotchaPlatform-specific; may not be portable across OSes
fix
Use std::net::SocketAddr for cross-platform code
affects: >=0.2.0
Upgrade
Version history
0.2.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
os-socketaddr — cargo add os-socketaddr · libregistry