xarxa

Crates

git

Versions

default

Flavors

Skip to main content

Module tcp

Module tcp 

Source
Expand description

TCP sockets.

Structs§

TcpHandle
A handle to a TCP socket added to a Stack.
TcpListener
A TCP listener borrowed from a Stack, returned by Stack::tcp_listener.
TcpListenerHandle
A handle to a TCP listener added to a Stack.
TcpListenerIter
Iterator over the TCP listeners of a Stack, returned by Stack::tcp_listeners.
TcpSocket
A Transmission Control Protocol socket, borrowed from a Stack by Stack::tcp_socket.
TcpSocketIter
Iterator over the TCP sockets of a Stack, returned by Stack::tcp_sockets.

Enums§

AcceptError
Error returned by TcpListener::accept_with_socket
ConnectError
Error returned by TcpSocket::connect
ListenError
Error returned by TcpListener::listen
RecvError
Error returned by TcpSocket::recv
SendError
Error returned by TcpSocket::send
State
The state of a TCP socket, according to RFC 793.