public class NewPacketFormatKeyContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
firstSeqNumUsed |
int |
highestReceivedSeqNum |
int |
nextSeqNum |
byte[][] |
seqNumWatchList |
int |
watchListOffset |
int |
watchListPointer
Index of the packet with the lowest sequence number
|
Modifier and Type | Method and Description |
---|---|
void |
ack(int ack,
BasePeerNode pn,
SessionKey key)
One of our outgoing packets has been acknowledged.
|
freenet.node.NewPacketFormatKeyContext.AddedAcks |
addAcks(freenet.node.NPFPacket packet,
int maxPacketSize,
long now)
Add as many acks as possible to the packet.
|
void |
checkForLostPackets(double averageRTT,
long curTime,
BasePeerNode pn) |
int |
countSentPackets() |
void |
disconnected() |
int |
queueAck(int seqno)
Queue an ack.
|
void |
sent(int sequenceNumber,
int length) |
void |
sent(freenet.node.NewPacketFormat.SentPacket sentPacket,
int seqNum,
int length) |
long |
timeCheckForAcks() |
long |
timeCheckForLostPackets(double averageRTT) |
public int firstSeqNumUsed
public int nextSeqNum
public int highestReceivedSeqNum
public byte[][] seqNumWatchList
public int watchListPointer
public int watchListOffset
public void ack(int ack, BasePeerNode pn, SessionKey key)
public int queueAck(int seqno)
public void sent(int sequenceNumber, int length)
public freenet.node.NewPacketFormatKeyContext.AddedAcks addAcks(freenet.node.NPFPacket packet, int maxPacketSize, long now)
public int countSentPackets()
public void sent(freenet.node.NewPacketFormat.SentPacket sentPacket, int seqNum, int length)
public long timeCheckForLostPackets(double averageRTT)
public void checkForLostPackets(double averageRTT, long curTime, BasePeerNode pn)
public long timeCheckForAcks()
public void disconnected()