Skip to main content

Module connection

Module connection 

Source
Expand description

Outbound MoQT connection with MoQT framing over QUIC.

Structs§

ClientConfig
Configuration for a MoQT client connection.
Connection
A live MoQT connection over QUIC or WebTransport, combining the endpoint state machine with actual network I/O.
FramedRecvStream
A framed reader for a recv stream. Handles MoQT varint-length decoding.
FramedSendStream
A framed writer for a send stream. Handles MoQT length-prefixed framing.
PendingInbound 🔒
Holds a peer-opened stream pair while its first message is being read, and puts it back on the connection’s queue if that read is abandoned.
RequestStream
One request and its answer, on a bidirectional stream of their own.

Enums§

ConnectionError
Errors from the connection layer.
RequestKind
Which of the seven message types draft-20 Section 3.3 lets a bidirectional stream begin with opened a request stream.
RequestOrigin
Which side opened the bidirectional stream a request travels on.
TransportType
Transport type for the connection.

Constants§

CONTROL_STREAM_TYPE
The unidirectional stream type that marks one direction of the control plane, and the SETUP message type. On draft-20 they are one number, 0x2F00: Section 3.4 (Unidirectional Stream Types) lists it as the type of a SETUP stream, and Section 10.3 gives it as the SETUP message’s own type field.
MAX_QUIC_VARINT 🔒
The largest value a QUIC application error code can carry, 2^62 - 1.
MOQT_ALPN
The ALPN identifier draft-20 uses on raw QUIC, moqt-20.
REQUEST_CANCELLED
The application error code a request stream is reset with when the requester abandons it: CANCELLED, 0x1.
REQUEST_UNANSWERED
The application error code a request stream the peer opened is reset with when this endpoint abandons it: INTERNAL_ERROR, 0x0.

Functions§

belongs_on_a_request_stream 🔒
Whether draft-20 Table 5 places this message on a request stream that is already open.
object_role 🔒
What an Object Status makes of an object here.
starts_a_request_stream
Whether ty is one of the seven message types draft-20 Section 3.3 lets a bidirectional stream begin with.