| Constructor and Description |
|---|
DataPayload(ByteBuffer data) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getData() |
PacketType |
getType() |
void |
onReceivedPayload(UtpHeader header,
UtpSocket socket)
Updates the socket state based on the received payload (this instance).
|
String |
toString() |
public DataPayload(ByteBuffer data)
public void onReceivedPayload(UtpHeader header, UtpSocket socket)
PayloadonReceivedPayload in interface Payloadheader - The header which was sent along with this payload.socket - The socket which received the payload.public byte[] getData()
public PacketType getType()
Copyright © 2017. All rights reserved.