tokio_core

Module net

Source
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§

  • Stream returned by the TcpListener::incoming function representing the stream of sockets received from a listener.
  • A future used to receive a datagram from a UDP socket.
  • A future used to write the entire contents of some data to a UDP socket.
  • An I/O object representing a TCP socket listening for incoming connections.
  • An I/O object representing a TCP stream connected to a remote endpoint.
  • Future returned by TcpStream::connect which will resolve to a TcpStream when the stream is connected.
  • A unified Stream and Sink interface to an underlying UdpSocket, using the UdpCodec trait to encode and decode frames.
  • An I/O object representing a UDP socket.

Traits§