udt.receiver
Class AckHistoryWindow

java.lang.Object
  extended by udt.util.CircularArray<AckHistoryEntry>
      extended by udt.receiver.AckHistoryWindow

public class AckHistoryWindow
extends CircularArray<AckHistoryEntry>

a circular array of each sent Ack and the time it is sent out


Field Summary
 
Fields inherited from class udt.util.CircularArray
circularArray, haveOverflow, max, position
 
Constructor Summary
AckHistoryWindow(int size)
           
 
Method Summary
 AckHistoryEntry getEntry(long ackNumber)
           
 long getTime(long ackNumber)
          return the time for the given seq no, or -1 if not known
 
Methods inherited from class udt.util.CircularArray
add, size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AckHistoryWindow

public AckHistoryWindow(int size)
Method Detail

getTime

public long getTime(long ackNumber)
return the time for the given seq no, or -1 if not known

Parameters:
ackNumber -

getEntry

public AckHistoryEntry getEntry(long ackNumber)


Copyright © 2013 LittleShoot. All Rights Reserved.