Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages | Examples

PendingAckList< PacketType, SocketType > Class Template Reference
[GanefCommon]

This is the class keeping the list of pending acks. It runs as its own thread, hence it can resend messages that are not Acknowledged in time. More...

#include <pendingacklist.h>

List of all members.

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


Detailed Description

template<class PacketType, class SocketType>
class PendingAckList< PacketType, SocketType >

This is the class keeping the list of pending acks. It runs as its own thread, hence it can resend messages that are not Acknowledged in time.

Author:
Lars Langer & Emanuel Greisen

Definition at line 83 of file pendingacklist.h.


The documentation for this class was generated from the following file:
Generated on Mon Feb 6 12:24:52 2006 for Ganef by  doxygen 1.4.4