Crate netstack3_tcp

Source
Expand description

Netstack3 core TCP.

This crate contains the TCP implementation for netstack3.

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.
CombinedTcpCounters
A union of the TCP Counters with and without a socket.
ConnectionInfo
Information about a connected socket’s address.
DemuxState
TCP demux state.
Ipv6Options
Socket options that are accessible on IPv6 sockets.
Ipv6SocketIdToIpv4DemuxIdConverter
A ZST that helps convert IPv6 socket IDs into IPv4 demux IDs.
IsnGenerator
A generator of TCP initial sequence numbers.
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.
Sockets
Holds all the TCP socket states.
TcpApi
The TCP socket API.
TcpSocketId
A TCP Socket ID.
TcpSocketSet
A thin wrapper around a hash map that keeps a set of all the known TCP sockets in the system.
TcpSocketState
The locked state held by a TCP socket.
TcpState
Stack wide state supporting TCP.
UnboundInfo
Information about an unbound socket.
WeakTcpSocketId
A Weak TCP Socket ID.

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.
TcpIpTransportContext
An implementation of [IpTransportContext] for TCP.
TcpTimerId
Timer ID for TCP connections.

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.
DualStackDemuxIdConverter
This trait allows us to work around the life-time issue when we need to convert an IPv6 socket ID into an IPv4 demux ID without holding on the a dual-stack CoreContext.
DualStackIpExt
A marker trait for dual-stack socket features.
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.
ReceiveBuffer
A buffer supporting TCP receiving operations.
SendBuffer
A buffer supporting TCP sending operations.
TcpBindingsContext
The bindings context for TCP.
TcpBindingsTypes
Bindings types for TCP.
TcpContext
Core context for TCP.
TcpDemuxContext
The core execution context abstracting demux state access for TCP.
TcpDualStackContext
A provider of dualstack socket functionality required by TCP sockets.

Type Aliases§

TcpCountersWithSocket
Counters for TCP events that can be attributed to an individual socket.
TcpCountersWithoutSocket
Counters for TCP events that cannot be attributed to an individual socket.