libktorrent  2.1.1
Public Member Functions | List of all members
utp::LocalWindow Class Reference

#include <localwindow.h>

Public Member Functions

 LocalWindow (bt::Uint32 cap=DEFAULT_CAPACITY)
 
bt::Uint32 availableSpace () const
 Get back the available space.
 
bt::Uint32 bytesAvailable () const
 The amount of bytes available.
 
bt::Uint32 currentWindow () const
 Get back how large the window is.
 
void fillSelectiveAck (SelectiveAck *sack)
 Fill a SelectiveAck structure.
 
bool isEmpty () const
 Is the window empty.
 
bool isReadable () const
 Is there something to read ?
 
bt::Uint16 lastSeqNr () const
 Get the last sequence number we can safely ack.
 
bool packetReceived (const Header *hdr, bt::Buffer::Ptr packet, bt::Uint32 data_off)
 A packet was received.
 
bt::Uint32 read (bt::Uint8 *data, bt::Uint32 max_len)
 Read from the local window.
 
bt::Uint32 selectiveAckBits () const
 Get the number of selective ack bits needed when sending a packet.
 
void setLastSeqNr (bt::Uint16 lsn)
 Set the last sequence number.
 
bt::Uint32 windowCapacity () const
 Get the window capacity.
 

Detailed Description

Manages the local window of a UTP connection.

Definition at line 75 of file localwindow.h.


The documentation for this class was generated from the following file: