Expand description
Netstack3 core TCP.
This crate contains the TCP implementation for netstack3.
Structs§
- Bound
Info - Information about a bound socket’s address.
- Buffer
Limits - Information about the number of bytes in a
Buffer
. - Buffer
Sizes - Named tuple for holding sizes of buffers for a socket.
- Combined
TcpCounters - A union of the TCP Counters with and without a socket.
- Connection
Info - Information about a connected socket’s address.
- Demux
State - TCP demux state.
- Ipv6
Options - Socket options that are accessible on IPv6 sockets.
- Ipv6
Socket IdTo Ipv4 Demux IdConverter - 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. - Socket
Addr - Socket address includes the ip address and the port number.
- Socket
Options - TCP socket options.
- Sockets
- Holds all the TCP socket states.
- TcpApi
- The TCP socket API.
- TcpSocket
Id - A TCP Socket ID.
- TcpSocket
Set - A thin wrapper around a hash map that keeps a set of all the known TCP sockets in the system.
- TcpSocket
State - The locked state held by a TCP socket.
- TcpState
- Stack wide state supporting TCP.
- Unbound
Info - Information about an unbound socket.
- Weak
TcpSocket Id - A Weak TCP Socket ID.
Enums§
- Accept
Error - Possible errors for accept operation.
- Bind
Error - Possible errors when connecting a socket.
- Connect
Error - Possible errors when connecting a socket.
- Connection
Error - Errors surfaced to the user.
- Listen
Error - Errors for the listen operation.
- Original
Destination Error - Possible errors when retrieving the original destination of a socket.
- SetDevice
Error - Error returned when failing to set the bound device for a socket.
- SetReuse
Addr Error - Error returned when attempting to set the ReuseAddress option.
- Socket
Info - Information about a socket.
- TcpIp
Transport Context - An implementation of [
IpTransportContext
] for TCP. - TcpTimer
Id - 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.
- Dual
Stack Demux IdConverter - 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.
- Dual
Stack IpExt - A marker trait for dual-stack socket features.
- Into
Buffers - A conversion trait that converts the object that Bindings give us into a pair of receive and send buffers.
- Listener
Notifier - A notifier used to tell Bindings about new pending connections for a single socket.
- Receive
Buffer - A buffer supporting TCP receiving operations.
- Send
Buffer - A buffer supporting TCP sending operations.
- TcpBindings
Context - The bindings context for TCP.
- TcpBindings
Types - Bindings types for TCP.
- TcpContext
- Core context for TCP.
- TcpDemux
Context - The core execution context abstracting demux state access for TCP.
- TcpDual
Stack Context - A provider of dualstack socket functionality required by TCP sockets.
Type Aliases§
- TcpCounters
With Socket - Counters for TCP events that can be attributed to an individual socket.
- TcpCounters
Without Socket - Counters for TCP events that cannot be attributed to an individual socket.