public static class SSU2Header.Header extends Object
| Modifier and Type | Field and Description |
|---|---|
byte[] | dataThe raw header bytes. |
| Constructor and Description |
|---|
Header(int len)Create a Header with the given size. |
| Modifier and Type | Method and Description |
|---|---|
long | getDestConnID()Available in all header types. |
byte[] | getEphemeralKey()X25519 ephemeral public key, present only in handshake headers. |
int | getHandshakeHeaderFlags()Long header flags byte, present only in long headers. |
int | getNetID()Network ID, present only in long headers. |
long | getPacketNumber()Available in all header types. |
int | getShortHeaderFlags()Short header flags byte, present only in short headers. |
long | getSrcConnID()Source connection ID, present only in long headers. |
long | getToken()Token, present only in long headers. |
int | getType()Available in all header types. |
int | getVersion()SSU2 protocol version, present only in long headers. |
String | toString()String representation of this header. |
public long getDestConnID()
public byte[] getEphemeralKey()
public int getHandshakeHeaderFlags()
public int getNetID()
public long getPacketNumber()
public int getShortHeaderFlags()
public long getSrcConnID()
public long getToken()
public int getType()
public int getVersion()