public class UtpTimeout extends Object
| Constructor and Description |
|---|
UtpTimeout()
Creates a new UTP Timeout handler with the initial timeout of 1 second.
|
| Modifier and Type | Method and Description |
|---|---|
Duration |
getDuration() |
void |
update(int receiveTime,
UtpPacket packet)
Calculates the new timeout based on the round trip time of a packet.
|
public UtpTimeout()
public void update(int receiveTime,
UtpPacket packet)
receiveTime - The time as close as possible to the time of receiving.packet - The packet which has completed the round trip.public Duration getDuration()
Copyright © 2016. All rights reserved.