Module type

Source
Expand description

Definitions of QUIC packet types.

Modules§

io
The io module provides the functions to parse and write the packet type.
long
Definitions of packet types related to long headers
short
Definitions of packet types related to short headers

Structs§

SpecificBits
The lower specific bits of the first byte of the long or short header. ‘R’ represents the reserved bits.

Enums§

Type
The Type of the packet

Constants§

LONG_RESERVED_MASK
Reserved bits mask for long headers, for the 5th and 6th bits of the first byte of the long header
SHORT_RESERVED_MASK
Reserved bits mask for short headers, for the 4th and 5th bits of the first byte of the short header

Traits§

GetPacketNumberLength
Get the packet number length from the protected first byte of the long or short header. The reserved bits must be 0; otherwise, a connection error of type PROTOCOL_VIOLATION is returned.

Type Aliases§

LongSpecificBits
The lower 4 bits of the first byte of the long header.
ShortSpecificBits
The lower 5 bits of the first byte of the short header, i.e., the last 5 bits.