1 //! Networking primitives. 2 //! 3 //! The types provided in this module are non-blocking by default and are 4 //! designed to be portable across all supported Mio platforms. As long as the 5 //! [portability guidelines] are followed, the behavior should be identical no 6 //! matter the target platform. 7 //! 8 //! [portability guidelines]: ../struct.Poll.html#portability 9 10 mod tcp; 11 pub use self::tcp::{TcpListener, TcpSocket, TcpStream, TcpKeepalive}; 12 13 mod udp; 14 pub use self::udp::UdpSocket; 15 16 #[cfg(unix)] 17 mod uds; 18 #[cfg(unix)] 19 pub use self::uds::{SocketAddr, UnixDatagram, UnixListener, UnixStream}; 20