VersionNegotiationPacket class

Version negotiation packet sent when a peer doesn't support the requested version.

When a server receives an Initial packet with an unknown version, it replies with a Version Negotiation packet containing a list of supported versions. This packet has version 0x00000000 and no packet number.

See also:

  • LongHeader — the header format from which this diverges
  • QuicVersions — supported version constants
  • RFC 9000 Section 17.2.1
Implemented types

Constructors

VersionNegotiationPacket({required List<int> destinationConnectionId, required List<int> sourceConnectionId, required List<int> supportedVersions})
Creates a version negotiation packet.

Properties

byteLength int
Total serialized byte length.
no setteroverride
destinationConnectionId List<int>
The destination connection ID (copied from the incoming Initial).
final
hashCode int
The hash code for this object.
no setterinherited
headerForm int
The header form: 1 for long header, 0 for short header.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceConnectionId List<int>
The source connection ID chosen by the server.
final
supportedVersions List<int>
The list of versions this endpoint supports.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() Future<Uint8List>
Serialize this header to bytes.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited