| Modifier and Type | Class and Description |
|---|---|
static class |
UtpHeader.Builder
A builder to create headers in a readable manner.
|
| Modifier and Type | Field and Description |
|---|---|
static byte |
IMPLEMENTED_VERSION
The currently implemented version.
|
| Modifier and Type | Method and Description |
|---|---|
short |
getAcknowledgeNumber() |
short |
getConnectionId() |
byte |
getExtension() |
short |
getSequenceNumber() |
int |
getTimestamp() |
int |
getTimestampDifference() |
byte |
getType() |
byte |
getVersion() |
int |
getWindowSize() |
void |
renew(short acknowledgeNumber,
int timestamp,
int timestampDifference)
Renews the packet for sending.
|
public static final byte IMPLEMENTED_VERSION
public void renew(short acknowledgeNumber,
int timestamp,
int timestampDifference)
acknowledgeNumber - The new packet to acknowledgetimestamp - The time at which this was sent.timestampDifference - The measured delay on the socket.public byte getType()
public byte getVersion()
public byte getExtension()
public short getConnectionId()
public int getTimestamp()
public int getTimestampDifference()
public int getWindowSize()
public short getSequenceNumber()
public short getAcknowledgeNumber()
Copyright © 2017. All rights reserved.