Skip to main content

Module transport

Module transport 

Source
Expand description

Network transport layer: reliable/unreliable channels, fragmentation, bandwidth throttling, and connection state machine.

Structs§

BandwidthThrottle
Bandwidth throttle using a token bucket algorithm.
ConnectionStateMachine
Connection state machine managing the lifecycle of a network connection.
FragmentHeader
Header for a fragment of a larger packet.
JitterBuffer
Jitter buffer for smoothing network packet delivery timing.
OutgoingPacket
A complete outgoing packet ready for serialization.
PacketFragmenter
Splits large payloads into fragments for transmission.
PacketHeader
Header prepended to every packet.
ReassemblyBuffer
Buffer managing reassembly of fragmented packets.
ReliableChannel
Reliable delivery channel with retransmission and RTT estimation.
TransportConfig
Configuration for the transport layer.
TransportStats
Transport-layer statistics.
UnreliableChannel
Unreliable channel: fire-and-forget with sequence numbers for ordering.

Enums§

ConnectionEvent
Events emitted by the connection state machine.
ConnectionState
Connection states in the state machine.
DisconnectReason
Reasons for disconnection.
PacketType
Types of packets in the protocol.

Functions§

deserialize_packet
Deserialize an incoming raw packet into its components.