dart_udx library

Classes

AckFrame
ACK Frame (Type 0x02) Acknowledges one or more packet ranges. Based on QUIC ACK Frame (RFC 9000, Section 19.3).
AckRange
Helper class for ACK ranges in an AckFrame.
CongestionController
Implements QUIC-style congestion control for UDX streams, based on RFC 9002.
ConnectionCids
A public class to hold the local and remote CIDs for a connection.
ConnectionId
Represents a UDX Connection Identifier (CID).
Frame
Base class for all UDX frames.
MaxDataFrame
MAX_DATA Frame (Type 0x05) Informs the peer of the maximum amount of data that can be sent on the connection.
MaxStreamsFrame
MAX_STREAMS Frame (Type 0x07) Informs the peer of the maximum number of concurrent streams the sender is willing to accept.
MtuProbeFrame
MTU_PROBE Frame (Type 0x08) Used for DPLPMTUD (RFC 8899). This frame is used to pad a packet to a specific size to probe if the path supports a larger MTU.
PacketManager
Manages packet sending and receiving for a UDXStream
PaddingFrame
PADDING Frame (Type 0x00) Used to ensure a packet has a minimum size.
PathChallengeFrame
PATH_CHALLENGE Frame (Type 0x09) Used to validate a new network path during connection migration. Contains arbitrary data that the peer must echo back.
PathResponseFrame
PATH_RESPONSE Frame (Type 0x0a) Used to respond to a PATH_CHALLENGE. Must contain the exact same data as the challenge frame it is responding to.
PingFrame
PING Frame (Type 0x01) Used to elicit an ACK from the peer.
ResetStreamFrame
RESET_STREAM Frame (Type 0x06) Informs the peer that a stream is being abruptly terminated.
StreamFrame
STREAM Frame (Type 0x03) Carries data for a specific stream.
UDPSocket
Represents a single UDX connection, managed by a UDXMultiplexer.
UDX
The main UDX class that provides reliable, multiplexed, and congestion-controlled streams over UDP.
UDXEvent
Base class for all UDX events
UDXMultiplexer
A class that demultiplexes incoming UDX packets to the correct UDPSocket.
UDXPacket
A UDX packet with stream information and a list of frames.
UDXStream
A reliable, ordered stream over UDP.
WindowUpdateFrame
WINDOW_UPDATE Frame (Type 0x04) Informs the peer of a change in the sender's receive window.

Enums

FrameType
Enum for different frame types.

Mixins

UDXEventEmitter
Mixin that provides event emitting capabilities

Typedefs

UDXEventCallback = void Function(UDXEvent event)
A type definition for the event callback function.

Exceptions / Errors

StreamLimitExceededError
Custom error for when a stream creation attempt exceeds the peer's advertised limit.
StreamResetError
Custom error for when a stream is reset by a peer.