class MgcpUdpPacket

class to hold a single RTP packet

Public Methods

char* getMessageLocation()
Get UDP messsage location
int getMessageSize()
Get UDP messsage length in bytes
MgcpUdpPacket(int payloadSize)
Create a packet and allocate data space on heap
friend ostream& operator<<(ostream& s, MgcpUdpPacket& x)
Print minimal info about packet, type, destination, timestamp
ostream& print( ostream& stream )
Print minimal info about packet, type, destination, timestamp
void printVerbose( ostream& stream )
Print all info about a packet including hex version of payload data
void setMessageSize(int size)
Set UDP messsage lenght in bytes
~MgcpUdpPacket()
Free space allocated on heap

Private Fields

int allocatedSize
allocated size of data buffer
char* data
pointer to the the raw data for the packet (including header)
int size
size of all the raw data for the packet (including header)

Documentation

class to hold a single RTP packet
MgcpUdpPacket(int payloadSize)
Create a packet and allocate data space on heap

~MgcpUdpPacket()
Free space allocated on heap

char* getMessageLocation()
Get UDP messsage location

int getMessageSize()
Get UDP messsage length in bytes

void setMessageSize(int size)
Set UDP messsage lenght in bytes

friend ostream& operator<<(ostream& s, MgcpUdpPacket& x)
Print minimal info about packet, type, destination, timestamp

ostream& print( ostream& stream )
Print minimal info about packet, type, destination, timestamp

void printVerbose( ostream& stream )
Print all info about a packet including hex version of payload data

char* data
pointer to the the raw data for the packet (including header)

int size
size of all the raw data for the packet (including header)

int allocatedSize
allocated size of data buffer


This class has no child classes.

alphabetic index hierarchy of classes


generated by doc++