Module std::old_io::net::tcpUnstable [-] [+] [src]

TCP network connections

This module contains the ability to open a TCP stream to a socket address, as well as creating a socket server to accept incoming connections. The destination and binding addresses can either be an IPv4 or IPv6 address.

A TCP connection implements the Reader and Writer traits, while the TCP listener (socket server) implements the Listener and Acceptor traits.

Structs

TcpAcceptor

The accepting half of a TCP socket server. This structure is created through a TcpListener's listen method, and this object can be used to accept new TcpStream instances.

TcpListener

A structure representing a socket server. This listener is used to create a TcpAcceptor which can be used to accept sockets on a local port.

TcpStream

A structure which represents a TCP stream between a local socket and a remote socket.