Module netstack3_core::tcp
source · Expand description
Methods for dealing with TCP sockets.
Structs§
- Information about a bound socket’s address.
- Information about the number of bytes in a
Buffer
. - Named tuple for holding sizes of buffers for a socket.
- Information about a connected socket’s address.
- Possible error for calling
shutdown
on a not-yet connected socket. - A circular buffer implementation.
- Socket address includes the ip address and the port number.
- TCP socket options.
- A TCP Socket ID.
- Information about an unbound socket.
Enums§
- Possible errors for accept operation.
- Possible errors when connecting a socket.
- Possible errors when connecting a socket.
- Errors surfaced to the user.
- Errors for the listen operation.
- A type for the payload being sent.
- Error returned when failing to set the bound device for a socket.
- Error returned when attempting to set the ReuseAddress option.
- Information about a socket.
Constants§
- Default lifetime for a orphaned connection in FIN_WAIT2.
Traits§
- Common super trait for both sending and receiving buffer.
- A conversion trait that converts the object that Bindings give us into a pair of receive and send buffers.
- A notifier used to tell Bindings about new pending connections for a single socket.
- A TCP payload that operates around
u32
instead ofusize
. - A buffer supporting TCP receiving operations.
- A buffer supporting TCP sending operations.
- Allows the implementor to be replaced by an empty value. The semantics is similar to
core::mem::take
, except that for some types it is not sensible to implementDefault
for the target type. This can be useful in state transitions, butreplace_with
might be a better choice. - Bindings types for TCP.