LimeWire Consolidated API

org.limewire.rudp.messages
Interface AckMessage

All Superinterfaces:
RUDPMessage

public interface AckMessage
extends RUDPMessage

Defines an interface for an ACK message.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.limewire.rudp.messages.RUDPMessage
RUDPMessage.OpCode
 
Field Summary
 
Fields inherited from interface org.limewire.rudp.messages.RUDPMessage
F_RUDP_MESSAGE, PROTOCOL_VERSION_NUMBER
 
Method Summary
 void extendWindowStart(long wStart)
          Extend the windowStart of incoming messages with the full 8 bytes of state
 int getWindowSpace()
          The windowSpace is a measure of how much more data the receiver can receive within its buffer.
 long getWindowStart()
          The windowStart is equivalent to the lowest un-received sequenceNumber coming from the receiving end of the connection.
 
Methods inherited from interface org.limewire.rudp.messages.RUDPMessage
extendSequenceNumber, getConnectionID, getDataLength, getLength, getOpCode, getSequenceNumber, write
 

Method Detail

getWindowStart

long getWindowStart()
The windowStart is equivalent to the lowest un-received sequenceNumber coming from the receiving end of the connection. It is saying, I have received everything up to one minus this. (Note: it rolls)


extendWindowStart

void extendWindowStart(long wStart)
Extend the windowStart of incoming messages with the full 8 bytes of state


getWindowSpace

int getWindowSpace()
The windowSpace is a measure of how much more data the receiver can receive within its buffer. This number will go to zero if the application on the receiving side is reading data slowly. If it goes to zero then the sender should stop sending.


LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.