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