Expand description
TCP/UDP bindings for tokio-core
This module contains the TCP/UDP networking types, similar to the standard library, which can be used to implement networking protocols.
Structs§
- Incoming
- Stream returned by the
TcpListener::incomingfunction representing the stream of sockets received from a listener. - Recv
Dgram - A future used to receive a datagram from a UDP socket.
- Send
Dgram - A future used to write the entire contents of some data to a UDP socket.
- TcpListener
- An I/O object representing a TCP socket listening for incoming connections.
- TcpStream
- An I/O object representing a TCP stream connected to a remote endpoint.
- TcpStream
New - Future returned by
TcpStream::connectwhich will resolve to aTcpStreamwhen the stream is connected. - UdpFramed
- A unified
StreamandSinkinterface to an underlyingUdpSocket, using theUdpCodectrait to encode and decode frames. - UdpSocket
- An I/O object representing a UDP socket.
Traits§
- UdpCodec
- Encoding of frames via buffers.