ConnectionIdManager class
Manages the lifecycle of Connection IDs for a single QUIC connection.
Implements the server-side (or endpoint-side) CID issuance and retirement logic described in RFC 9000 Section 19.15 and 19.16.
Constructors
Properties
-
activeIds
→ List<
ConnectionIdRecord> -
Returns a snapshot of all currently active connection IDs.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
issueNewId(
{int retirePriorTo = 0}) → ConnectionIdRecord - Issues a new connection ID with an associated stateless reset token.
-
isValidId(
List< int> connectionId) → bool -
Returns
trueifconnectionIdis currently in the active set. -
lookupSequenceNumber(
List< int> connectionId) → int? - Looks up the sequence number for an active connection ID.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerId(
{required List< int> connectionId, required int sequenceNumber, required List<int> statelessResetToken}) → void - Register an externally received connection ID.
-
retireId(
int sequenceNumber) → void - Retires a connection ID by sequence number.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- maxActiveIds → const int
- maxConnectionIdLength → const int
- maxRetiredIds → const int
- minConnectionIdLength → const int
- statelessResetTokenLength → const int