A 1-RTT packet uses a short packet header. It is used after the version and 1-RTT keys are negotiated. 1-RTT Packet { Header Form (1) = 0, Fixed Bit (1) = 1, Spin Bit (1), Reserved Bits (2), # Protected Key Phase (1), # Protected Packet Number Length (2), # Protected Destination Connection ID (0..160), Packet Number (8..32), # Protected # Protected Packet Payload: Protected Payload (0..24), # Skipped Part Protected Payload (128), # Sampled Part Protected Payload (..), # Remainder }
Subclasses of this class may be used to model packets exchanged with either Quic Version 1 or Quic Version 2. Quic Version 2 uses the same 1-RTT packet structure than Quic Version 1.
| Modifier and Type | Method and Description |
|---|---|
| public List | frames()
Redeclares as abstract: jdk. Returns this packet's frames. |
| public default int | |
| public default QuicPacket. | numberSpace()
Implements jdk. Returns this packet's number space. |
| public default QuicPacket. | packetType()
Implements jdk. Returns this packet's type. |
| public default String | |
| public default int | Returns: the packet's Latency Spin BitReturns the packet's Latency Spin Bit: 0 or 1, if known. |
| frames | back to summary |
|---|---|
| public List Redeclares as abstract: jdk. Doc from jdk. Returns this packet's frames.
| |
| keyPhase | back to summary |
|---|---|
| public default int keyPhase() Returns the packet's Key Phase Bit: 0 or 1, if known. Returns -1 for outgoing packets. RFC 9000, Section 17.3.1:
| |
| numberSpace | back to summary |
|---|---|
| public default QuicPacket. Implements jdk. Doc from jdk. Returns this packet's number space.
| |
| packetType | back to summary |
|---|---|
| public default QuicPacket. Implements jdk. Doc from jdk. Returns this packet's type.
| |
| prettyPrint | back to summary |
|---|---|
| public default String prettyPrint() Overrides default jdk.
| |
| spin | back to summary |
|---|---|
| public default int spin() Returns the packet's Latency Spin Bit: 0 or 1, if known. Returns -1 for outgoing packets. RFC 9000, Section 17.3.1:
| |