Skip to main content

Module datagram

Module datagram 

Source
Expand description

The DATAGRAM payload of a datagram flow: varint flow || opaque bytes (docs/PROTOCOL.md §6.9).

The prefix is a QUIC varint rather than CBOR for the same reason a cursor record is: it is on the hot path, self-delimiting, and a map header per datagram would buy nothing the FLOW header does not already say.

Constants§

LOCAL_MAX_DATAGRAM
Largest datagram a local transport carries in one FLOW record (docs/PROTOCOL.md §2.1). A longer record is a protocol violation.

Functions§

flow_prefix
The varint prefix for flow flow, in a fixed buffer, and its length.
split_flow_datagram
Splits a received datagram into its flow id and the offset of its payload.