Package net.i2p.router.transport.udp
Interface ACKBitfield
-
interface ACKBitfieldGeneric means of SACK/NACK transmission for partially or fully received messages
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intackCount()Number of fragments acked in this bitfield.intfragmentCount()how many fragments are covered in this bitfield?longgetMessageId()what message is this partially ACKing?inthighestReceived()Highest fragment number acked in this bitfield.booleanreceived(int fragmentNum)has the given fragment been received?booleanreceivedComplete()has the entire message been received completely?
-
-
-
Method Detail
-
getMessageId
long getMessageId()
what message is this partially ACKing?
-
fragmentCount
int fragmentCount()
how many fragments are covered in this bitfield?
-
received
boolean received(int fragmentNum)
has the given fragment been received?
-
receivedComplete
boolean receivedComplete()
has the entire message been received completely?
-
ackCount
int ackCount()
Number of fragments acked in this bitfield. Faster than looping through received()- Since:
- 0.9.16
-
highestReceived
int highestReceived()
Highest fragment number acked in this bitfield.- Returns:
- highest fragment number acked, or -1 if none
- Since:
- 0.9.16
-
-