Name Description Size
ext.rs 52956
lib.rs Extensions to `std::net` networking types. This crate implements a number of extensions to the standard `std::net` networking types, hopefully being slated for inclusion into the standard library in the future. The goal of this crate is to expose all sorts of cross-platform and platform-specific configuration options of UDP/TCP sockets. System APIs are wrapped with as thin a layer as possible instead of bundling multiple actions into one API call. More information about the design of this crate can be found in the [associated rfc][rfc] [rfc]: https://github.com/rust-lang/rfcs/pull/1158 # Examples ```no_run use net2::TcpBuilder; let tcp = TcpBuilder::new_v4().unwrap(); tcp.reuse_address(true).unwrap() .only_v6(false).unwrap(); let mut stream = tcp.connect("127.0.0.1:80").unwrap(); // use `stream` as a TcpStream ``` 3649
socket.rs 8637
sys
tcp.rs 5918
udp.rs 2967
unix.rs Unix-specific extensions to the `std::net` types. 2071
utils.rs 1241