class MgcpReceiver


Public Methods

void addToFdSet( fd_set* set )
add this file descriptor to a FD_SET for a select call to use
bool checkIfSet( fd_set* set )
Check if this file descriptor is set in an FD_SET for checking after a select call
MgcpReceiver( int port, int jitterBufferMs = 50 )
Create an input stack and start listening on aproperate port
MgcpReceiver::~MgcpReceiver()
Destructor
void onlyAcceptPacketsFrom( char* hostName )
Not implemented, why here ?
int receive( char* buffer, int bufferSize)
Get the next chunk of data from the stream. Returns bytes received.
MgcpPacket* receive()
return a new UDP packet, non-blocking, NULL if none available, user must free this packet

Public

Set the stack so it generates an error if it received data from other hosts

Private Fields

bool freeStack
should I free my stack?
UdpStack* myStack
my UDP stack

Private Methods

MgcpPacket* getPacket()
read the next packet off the network

Documentation

MgcpReceiver( int port, int jitterBufferMs = 50 )
Create an input stack and start listening on aproperate port

MgcpReceiver::~MgcpReceiver()
Destructor

int receive( char* buffer, int bufferSize)
Get the next chunk of data from the stream. Returns bytes received.

MgcpPacket* receive()
return a new UDP packet, non-blocking, NULL if none available, user must free this packet

Set the stack so it generates an error if it received data from other hosts

void onlyAcceptPacketsFrom( char* hostName )
Not implemented, why here ?

void addToFdSet( fd_set* set )
add this file descriptor to a FD_SET for a select call to use

bool checkIfSet( fd_set* set )
Check if this file descriptor is set in an FD_SET for checking after a select call

UdpStack* myStack
my UDP stack

bool freeStack
should I free my stack?

MgcpPacket* getPacket()
read the next packet off the network


This class has no child classes.

alphabetic index hierarchy of classes


generated by doc++