Skip to main content

Module net

Module net 

Source

Structs§

SocketAddr
An address associated with a Unix socket.
TcpListener
A TCP socket server, listening for connections.
TcpStream
A TCP stream between a local and a remote socket.
UdpSocket
A UDP socket.
UnixListener
A Unix socket which can accept connections from other Unix sockets.
UnixSocketAddr
An address associated with a Tokio Unix socket.
UnixStream
A structure representing a connected Unix socket.

Functions§

lookup_host
Resolves a host name on a blocking thread pool, so a slow DNS server does not block the executor.