|
libktorrent
2.1.1
|
#include <remotewindow.h>
Public Member Functions | |
| void | addPacket (const PacketBuffer &packet, bt::Uint16 seq_nr, bt::TimeStamp send_time) |
| Add a packet to the remote window (should include headers) | |
| bool | allowedToSend (bt::Uint32 packet_size) const |
| Are we allowed to send. | |
| bool | allPacketsAcked () const |
| See if all packets are acked. | |
| bt::Uint32 | availableSpace () const |
| Calculates how much window space is availabe. | |
| void | clear () |
| Clear the window. | |
| bt::Uint32 | currentWindow () const |
| bt::Uint32 | maxWindow () const |
| bt::Uint32 | numUnackedPackets () const |
| Get the number of unacked packets. | |
| void | packetReceived (const Header *hdr, const SelectiveAck *sack, Retransmitter *conn) |
| A packet was received (update window size and check for acks) | |
| void | timeout (Retransmitter *conn) |
| A timeout occured. | |
| void | updateWindowSize (double scaled_gain) |
| Update the window size. | |
| bt::Uint32 | windowSize () const |
| double | windowUsageFactor () const |
| Get the window usage factor. | |
Keeps track of the remote sides window including all packets inflight.
Definition at line 87 of file remotewindow.h.
1.8.18