Skip to main content

Module socket

Module socket 

Source
Expand description

This module defines the socket-like interface for Session protocol.

Modules§

ack_state
This module defines the SocketState that turns SessionSocket into a reliable socket, with segment/frame retransmission and frame acknowledgements.
loss_report 🔒
Summarises dropped frames and duplicate segments received by a SessionSocket.
loss_signal
A live signal of frame loss that a Session’s owner can read.
state

Structs§

SessionSocket
Socket-like object implementing the Session protocol that can operate on any transport that implements [futures::io::AsyncRead] and [futures::io::AsyncWrite].
SessionSocketConfig
Configuration object for SessionSocket.

Enums§

WriteState 🔒

Functions§

log_state_update_error 🔒
Logs a failed update of the socket state.