Skip to main content

Module datagram_prefix

Module datagram_prefix 

Source
Expand description

The fields of a received datagram up to its Extension Headers Length.

On drafts 11 through 16 the codec’s datagram header decoder refuses an announced extension block with a length of 0 as a bare InvalidField, which it also returns for other faults. Each draft’s recv_datagram reads the prefix again here, after that refusal, to tell whether the empty block was the fault, since the drafts answer it with a session close.

Re-exports§

use moqtap_codec::varint::VarInt; 🔒

Structs§

Prefix 🔒
Which fields a datagram Type puts before its Extension Headers Length.

Functions§

empty_extension_block 🔒
The Object ID of a datagram whose Type announces an extension block and whose Extension Headers Length is 0, or None for any other datagram.