Module tokio_core::net [] [src]

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::incoming function representing the stream of sockets received from a listener.

RecvDgram

A future used to receive a datagram from a UDP socket.

SendDgram

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.

TcpStreamNew

Future returned by TcpStream::connect which will resolve to a TcpStream when the stream is connected.

UdpFramed

A unified Stream and Sink interface to an underlying UdpSocket, using the UdpCodec trait to encode and decode frames.

UdpSocket

An I/O object representing a UDP socket.

Traits

UdpCodec

Encoding of frames via buffers.