#include <NetReceiver.h>
Inheritance diagram for NetReceiverBase:
Public Member Functions | |
NetReceiverBase () | |
~NetReceiverBase () | |
virtual void | onReceive ()=0 |
is called by the associated handler when receiving data | |
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 |
true if new data is aviable | |
void * | package |
pointer to the data | |
int | size |
size of the data |
Definition at line 17 of file NetReceiver.h.
|
Definition at line 20 of file NetReceiver.h. |
|
Definition at line 27 of file NetReceiver.h. References freePackage(). |
Here is the call graph for this function:
|
is called by the associated handler when receiving data
Implemented in NetReceiver< T >. Referenced by UDPHandlerEndpoint::onReceive(), and TCPHandler::onReceive(). |
|
Definition at line 34 of file NetReceiver.h. References receivedNewPackage. |
|
gets memory for the NetHandler to store the data the NetReceiver then calls the streaming-operator for this data.
Definition at line 44 of file NetReceiver.h. Referenced by UDPHandler::addSenderAndReceiver(), UDPHandlerEndpoint::onReceive(), TCPHandler::onReceive(), and TCPHandler::TCPHandler(). |
|
frees the memory allocated by getPackage
Definition at line 60 of file NetReceiver.h. Referenced by ~NetReceiverBase(). |
|
true if new data is aviable
Definition at line 69 of file NetReceiver.h. Referenced by receivedNew(). |
|
pointer to the data
Definition at line 70 of file NetReceiver.h. Referenced by UDPHandlerEndpoint::onReceive(). |
|
size of the data
Definition at line 71 of file NetReceiver.h. Referenced by getPackage(). |