#include <pendingacklist.h>
Public Member Functions | |
PendingAckList (Framework< PacketType, SocketType > *framework) | |
~PendingAckList () | |
void | addPendingAck (unsigned int packet_seq, unsigned short packet_pri, unsigned int user_id, unsigned int timeout, PacketType *pack, bool haslock) |
unsigned int | registerAck (unsigned int packet_seq, unsigned char packet_pri, unsigned int user_id) |
This method will remove a pending ack, and return the RTT for this ack. | |
void | execute () |
The run-method of this thread. | |
unsigned int | size () const |
Returns the number of pending acks. | |
template<typename Comp> | |
void | removeWithComparer (const Comp &comp) |
Will set all pending-acks that whose userid matches to state cancelled. | |
void | clear () |
Will simply clear the map. | |
Protected Attributes | |
OakBinaryMinHeap< PendingAck< PacketType, SocketType >, PendingAckTimtoutCompare< PacketType, SocketType > > | timeoutheap |
std::set< PendingAck< PacketType, SocketType > *, PendingAckKeyCompare< PacketType, SocketType > > | ackmap |
Definition at line 83 of file pendingacklist.h.