#include <receiver.h>
Public Member Functions | |
Constructors/destructors | |
IAX2Receiver (IAX2EndPoint &_newEndpoint, PUDPSocket &_newSocket) | |
~IAX2Receiver () | |
general worker methods | |
virtual void | Main () |
BOOL | ReadNetworkSocket () |
void | AddNewReceivedFrame (IAX2Frame *newFrame) |
Protected Attributes | |
IAX2EndPoint & | endpoint |
PUDPSocket & | sock |
IAX2FrameList | fromNetworkFrames |
BOOL | keepGoing |
|
Construct a receiver, given references to the endpoint and socket |
|
Destroy the receiver |
|
We have just read a frame from the network. This is a good IAX2Frame. Put it on the queue of frames to be processed by the IAX2EndPoint. The IAX2EndPoint will give this frame to the appropriate IAXConnection. Since this frame could be encrypted, and we do not have access to the keys (only the IAX2Connection has the keys, we cannot do anymore with the frame). Indeed, we are the receiving thread, and must put all our time into reading from the socket, not processing the packets. |
|
|
|
Sit in here, waiting for data on the socket |
|
Global variable which holds the application specific data |
|
The act of processing a header will (inevitably) create additional frames as trunked frames are split up |
|
Flag to indicate if this receiver thread should keep listening for network data |
|
Socket that is used to receive all network data from |