class MgcpUdpReceiver : public MgcpUdpStack


Inheritance:


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
MgcpUdpReceiver( int port = 5004, int jitterBufferMs = 50 )
Create an input stack and start listening on aproperate port
void onlyAcceptPacketsFrom( char* hostName )
Set the stack so it generates an error if it received data from other hosts
int receive( char* buffer, int bufferSize)
Get the next chunk of data from the stream. Returns bytes received.
MgcpUdpPacket* receive()
return a new UDP packet, non-blocking, NULL if none available, user must free this packet

Private Methods

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

Inherited from MgcpUdpStack:

Protected Fields

int port
struct sockaddr_in rxAddress
int socketFd
struct sockaddr_in txAddress

Documentation

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

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

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

void onlyAcceptPacketsFrom( char* hostName )
Set the stack so it generates an error if it received data from other hosts

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

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


This class has no child classes.

alphabetic index hierarchy of classes


generated by doc++