Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

NetReceiverBase Class Reference

class NetReceiverBase - Template-Independent part of the NetReceiver handles memory-acclocation More...

#include <NetReceiver.h>

Inheritance diagram for NetReceiverBase:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 NetReceiverBase ()
 ~NetReceiverBase ()
virtual void onReceive ()=0
bool receivedNew ()
void * getPackage (int newsize)
 gets memory for the NetHandler to store the data the NetReceiver then calls the streaming-operator for this data.

void freePackage ()
 frees the memory allocated by getPackage


Public Attributes

bool receivedNewPackage
void * package
int size

Detailed Description

class NetReceiverBase - Template-Independent part of the NetReceiver handles memory-acclocation

Definition at line 17 of file NetReceiver.h.


Constructor & Destructor Documentation

NetReceiverBase::NetReceiverBase  )  [inline]
 

Definition at line 20 of file NetReceiver.h.

NetReceiverBase::~NetReceiverBase  )  [inline]
 

Definition at line 27 of file NetReceiver.h.

References freePackage().

Here is the call graph for this function:


Member Function Documentation

virtual void NetReceiverBase::onReceive  )  [pure virtual]
 

Implemented in NetReceiver< T >.

Referenced by UDPHandlerEndpoint::onReceive(), UDPBroadcastHandler::onReceive(), and TCPHandler::onReceive().

bool NetReceiverBase::receivedNew  )  [inline]
 

Definition at line 34 of file NetReceiver.h.

References receivedNewPackage.

void* NetReceiverBase::getPackage int  newsize  )  [inline]
 

gets memory for the NetHandler to store the data the NetReceiver then calls the streaming-operator for this data.

Definition at line 46 of file NetReceiver.h.

References ASSERT.

Referenced by UDPHandler::addSenderAndReceiver(), UDPHandlerEndpoint::onReceive(), TCPHandler::onReceive(), and TCPHandler::TCPHandler().

void NetReceiverBase::freePackage  )  [inline]
 

frees the memory allocated by getPackage

Definition at line 62 of file NetReceiver.h.

Referenced by ~NetReceiverBase().


Member Data Documentation

bool NetReceiverBase::receivedNewPackage
 

Definition at line 71 of file NetReceiver.h.

Referenced by receivedNew().

void* NetReceiverBase::package
 

Definition at line 72 of file NetReceiver.h.

Referenced by UDPHandlerEndpoint::onReceive(), and UDPBroadcastHandler::onReceive().

int NetReceiverBase::size
 

Definition at line 73 of file NetReceiver.h.

Referenced by UDPBroadcastHandler::onReceive().


The documentation for this class was generated from the following file:
Generated on Mon Mar 20 22:18:15 2006 for GT2005 by doxygen 1.3.6