Long Header Packet { Header Form (1) = 1, Version-Specific Bits (7), Version (32), Destination Connection ID Length (8), Destination Connection ID (0..2040), Source Connection ID Length (8), Source Connection ID (0..2040), Version-Specific Data (..), }
| Modifier and Type | Field and Description |
|---|---|
| private final QuicConnectionId | destinationId
Record Component accessed by destinationId(). Destination Connection ID |
| private final int | headerLength
Record Component accessed by headerLength(). length in bytes of the packet header |
| private final QuicConnectionId | sourceId
Record Component accessed by sourceId(). Source Connection ID |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | LongHeader(int version, QuicConnectionId destinationId, QuicConnectionId sourceId, int headerLength)
|
| Modifier and Type | Method and Description |
|---|---|
| public QuicConnectionId | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public int | headerLength()
Record Component getter of headerLength.
Record Component length in bytes of the packet header |
| public QuicConnectionId | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| public int |
| destinationId | back to summary |
|---|---|
| private final QuicConnectionId destinationId Record Component accessed by destinationId(). Destination Connection ID | |
| headerLength | back to summary |
|---|---|
| private final int headerLength Record Component accessed by headerLength(). length in bytes of the packet header | |
| sourceId | back to summary |
|---|---|
| private final QuicConnectionId sourceId Record Component accessed by sourceId(). Source Connection ID | |
| version | back to summary |
|---|---|
| private final int version Record Component accessed by version(). version | |
| LongHeader | back to summary |
|---|---|
| public LongHeader(int version, QuicConnectionId destinationId, QuicConnectionId sourceId, int headerLength) | |
| destinationId | back to summary |
|---|---|
| public QuicConnectionId destinationId() Record Component getter of destinationId.
| |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| headerLength | back to summary |
|---|---|
| public int headerLength() Record Component getter of headerLength.
| |
| sourceId | back to summary |
|---|---|
| public QuicConnectionId sourceId() Record Component getter of sourceId.
| |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| version | back to summary |
|---|---|
| public int version() Record Component getter of version.
| |