Expand description
Network transport layer: reliable/unreliable channels, fragmentation, bandwidth throttling, and connection state machine.
Structs§
- Bandwidth
Throttle - Bandwidth throttle using a token bucket algorithm.
- Connection
State Machine - Connection state machine managing the lifecycle of a network connection.
- Fragment
Header - Header for a fragment of a larger packet.
- Jitter
Buffer - Jitter buffer for smoothing network packet delivery timing.
- Outgoing
Packet - A complete outgoing packet ready for serialization.
- Packet
Fragmenter - Splits large payloads into fragments for transmission.
- Packet
Header - Header prepended to every packet.
- Reassembly
Buffer - Buffer managing reassembly of fragmented packets.
- Reliable
Channel - Reliable delivery channel with retransmission and RTT estimation.
- Transport
Config - Configuration for the transport layer.
- Transport
Stats - Transport-layer statistics.
- Unreliable
Channel - Unreliable channel: fire-and-forget with sequence numbers for ordering.
Enums§
- Connection
Event - Events emitted by the connection state machine.
- Connection
State - Connection states in the state machine.
- Disconnect
Reason - Reasons for disconnection.
- Packet
Type - Types of packets in the protocol.
Functions§
- deserialize_
packet - Deserialize an incoming raw packet into its components.