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

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

This class sends packets across the network. It runs in it's own thread, constantly trying to empty the outqueue. Since the outqueue works as a semaphore, we have a producer-consumer setup. More...

#include <packetsender.h>

List of all members.

Public Member Functions

 PacketSender (SocketType *socket, Queue< PacketType > *queue, mutex &pendingackmutex, Framework< PacketType, SocketType > *framework)
 ~PacketSender ()
void startSending ()
unsigned int bytesSent () const
unsigned int packetsSent () const
void sendPacketSync (PacketType *pack)
virtual void execute ()
virtual void cleanup ()


Detailed Description

template<class PacketType, class SocketType>
class PacketSender< PacketType, SocketType >

This class sends packets across the network. It runs in it's own thread, constantly trying to empty the outqueue. Since the outqueue works as a semaphore, we have a producer-consumer setup.

Author:
Lars Langer and Emanuel Greisen

Definition at line 48 of file packetsender.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