Module tcp

Source
Expand description

Methods for dealing with TCP sockets.

Structs§

BoundInfo
Information about a bound socket’s address.
BufferLimits
Information about the number of bytes in a Buffer.
BufferSizes
Named tuple for holding sizes of buffers for a socket.
ConnectionInfo
Information about a connected socket’s address.
FragmentedPayload
An implementation of Payload backed by up to N byte slices.
NoConnection
Possible error for calling shutdown on a not-yet connected socket.
SocketAddr
Socket address includes the ip address and the port number.
SocketOptions
TCP socket options.
TcpSocketId
A TCP Socket ID.
UnboundInfo
Information about an unbound socket.

Enums§

AcceptError
Possible errors for accept operation.
BindError
Possible errors when connecting a socket.
ConnectError
Possible errors when connecting a socket.
ConnectionError
Errors surfaced to the user.
ListenError
Errors for the listen operation.
OriginalDestinationError
Possible errors when retrieving the original destination of a socket.
SetDeviceError
Error returned when failing to set the bound device for a socket.
SetReuseAddrError
Error returned when attempting to set the ReuseAddress option.
SocketInfo
Information about a socket.

Constants§

DEFAULT_FIN_WAIT2_TIMEOUT
Default lifetime for a orphaned connection in FIN_WAIT2.

Traits§

Buffer
Common super trait for both sending and receiving buffer.
IntoBuffers
A conversion trait that converts the object that Bindings give us into a pair of receive and send buffers.
ListenerNotifier
A notifier used to tell Bindings about new pending connections for a single socket.
Payload
A TCP payload that operates around u32 instead of usize.
PayloadLen
A TCP payload that only allows for getting the length of the payload.
ReceiveBuffer
A buffer supporting TCP receiving operations.
SendBuffer
A buffer supporting TCP sending operations.
TcpBindingsTypes
Bindings types for TCP.