A Version Negotiation packet is inherently not version-specific. Upon receipt by a client, it will be identified as a Version Negotiation packet based on the Version field having a value of 0. The Version Negotiation packet is a response to a client packet that contains a version that is not supported by the server, and is only sent by servers. The layout of a Version Negotiation packet is: Version Negotiation Packet { Header Form (1) = 1, Unused (7), Version (32) = 0, Destination Connection ID Length (8), Destination Connection ID (0..2040), Source Connection ID Length (8), Source Connection ID (0..2040), Supported Version (32) ..., }
| Modifier and Type | Method and Description |
|---|---|
| public default QuicPacket. | Returns: PacketNumberSpace#NONEImplements jdk. This packet type is not numbered: returns
|
| public default long | Returns: -1LOverrides default jdk. This packet type is not numbered: returns -1L always. |
| public default QuicPacket. | packetType()
Implements jdk. Returns this packet's type. |
| public int[] | |
| public default int | version()
Implements jdk. Returns the Quic version of the packet. |
| numberSpace | back to summary |
|---|---|
| public default QuicPacket. Implements jdk. This packet type is not numbered: returns
| |
| packetNumber | back to summary |
|---|---|
| public default long packetNumber() Overrides default jdk. This packet type is not numbered: returns -1L always.
| |
| packetType | back to summary |
|---|---|
| public default QuicPacket. Implements jdk. Doc from jdk. Returns this packet's type.
| |
| supportedVersions | back to summary |
|---|---|
| public int[] supportedVersions() | |
| version | back to summary |
|---|---|
| public default int version() Implements jdk. Doc from jdk. Returns the Quic version of the packet.
| |