Module net

1.0.0 ยท Source
Expand description

Networking primitives for TCP/UDP communication.

This module provides networking functionality for the Transmission Control and User Datagram Protocols, as well as types for IP and socket addresses.

ยงOrganization

Rust disables inheritance of socket objects to child processes by default when possible. For example, through the use of the CLOEXEC flag in UNIX systems or the HANDLE_FLAG_INHERIT flag on Windows.

Re-exportsยง

pub use self::socket_addr::ToSocketAddrs;
pub use self::tcp::Incoming;
pub use self::tcp::TcpListener;
pub use self::tcp::TcpStream;
pub use self::udp::UdpSocket;
pub use self::tcp::IntoIncoming;Experimental

Modulesยง

ip_addr ๐Ÿ”’
socket_addr ๐Ÿ”’
tcp ๐Ÿ”’
udp ๐Ÿ”’

Structsยง

AddrParseError
An error which can be returned when parsing an IP address or a socket address.
Ipv4Addr
An IPv4 address.
Ipv6Addr
An IPv6 address.
SocketAddrV4
An IPv4 socket address.
SocketAddrV6
An IPv6 socket address.

Enumsยง

IpAddr
An IP address, either IPv4 or IPv6.
Shutdown
Possible values which can be passed to the TcpStream::shutdown method.
SocketAddr
An internet socket address, either IPv4 or IPv6.
Ipv6MulticastScopeExperimental
Scope of an IPv6 multicast address as defined in IETF RFC 7346 section 2.

Functionsยง

each_addr ๐Ÿ”’