Available on crate feature
net
only.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.
This module is an async version of std::net.
Structs§
- A TCP socket server, listening for connections. After creating a TcpListener by binding it to a socket address, it listens for incoming TCP connections. These can be accepted by awaiting elements from the async stream of incoming connections.
- A TCP stream between a local and a remote socket.
- A UDP socket.
- A Unix socket server, listening for connections. After creating a UnixListener by binding it to a socket address, it listens for incoming Unix connections. These can be accepted by awaiting elements from the async stream of incoming connections.