public class PacketAckHandler extends Object
| Constructor and Description |
|---|
PacketAckHandler(UtpSocket socket)
Created an Ack Handler with an uninitialized initial packet.
|
PacketAckHandler(UtpSocket socket,
short acknowledgeNumber)
Created an Ack Handler with an initialized initial packet.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onReceivedPacket(UtpPacket packet)
Processes the acknowledgement in the received packet and potentially marks a packet to be resent.
|
public PacketAckHandler(UtpSocket socket)
onReceivedPacket(UtpPacket) will be considered the first
packet to ack.socket - The socket which has to ack the received packets.public PacketAckHandler(UtpSocket socket, short acknowledgeNumber)
socket - The socket which has to ack the received packets.public void onReceivedPacket(UtpPacket packet)
packet - The received packet.Copyright © 2017. All rights reserved.