public class SocketWindowHandler extends Object
CCONTROL_TARGET on top of the normal
socket delay.| Constructor and Description |
|---|
SocketWindowHandler() |
| Modifier and Type | Method and Description |
|---|---|
int |
getBytesInFlight() |
int |
getMaxWindow() |
void |
onPacketLoss(UtpPacket packet) |
Optional<UtpPacket> |
onReceivedPacket(UtpPacket packet)
Updates the Socket Window based on the received packet.
|
void |
onSentPacket(UtpPacket packet) |
void |
onTimeout() |
public Optional<UtpPacket> onReceivedPacket(UtpPacket packet)
packet - The received packet.Optional.empty() if no new packet was acked.public void onSentPacket(UtpPacket packet)
public int getBytesInFlight()
public int getMaxWindow()
public void onTimeout()
public void onPacketLoss(UtpPacket packet)
Copyright © 2017. All rights reserved.