Expand description
Methods for dealing with TCP sockets.
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.
- Connection
Info - Information about a connected socket’s address.
- Fragmented
Payload - An implementation of
Payload
backed by up toN
byte slices. - 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.
- TcpSocket
Id - A TCP Socket ID.
- Unbound
Info - Information about an unbound socket.
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.
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.
- 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.
- Payload
- A TCP payload that operates around
u32
instead ofusize
. - Payload
Len - A TCP payload that only allows for getting the length of the payload.
- Receive
Buffer - A buffer supporting TCP receiving operations.
- Send
Buffer - A buffer supporting TCP sending operations.
- TcpBindings
Types - Bindings types for TCP.