RTCPCompoundPacket Class Reference

Represents an RTCP compound packet.

#include <rtcpcompoundpacket.h>

Inheritance diagram for RTCPCompoundPacket:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 RTCPCompoundPacket (RTPRawPacket &rawpack, RTPMemoryManager *memmgr=0)
 Creates an RTCPCompoundPacket instance from the data in rawpack, installing a memory manager if specified.
 RTCPCompoundPacket (uint8_t *packet, size_t len, bool deletedata=true, RTPMemoryManager *memmgr=0)
 Creates an RTCPCompoundPacket instance from the data in packet}, with size len.
int GetCreationError ()
 Checks if the RTCP compound packet was created successfully.
uint8_t * GetCompoundPacketData ()
 Returns a pointer to the data of the entire RTCP compound packet.
size_t GetCompoundPacketLength ()
 Returns the size of the entire RTCP compound packet.
void GotoFirstPacket ()
 Starts the iteration over the individual RTCP packets in the RTCP compound packet.
RTCPPacketGetNextPacket ()
 Returns a pointer to the next individual RTCP packet.

Constructor & Destructor Documentation

RTCPCompoundPacket::RTCPCompoundPacket ( uint8_t *  packet,
size_t  len,
bool  deletedata = true,
RTPMemoryManager memmgr = 0 
)

Creates an RTCPCompoundPacket instance from the data in packet}, with size len. The deletedata flag specifies if the data in packet should be deleted when the compound packet is destroyed. If specified, a memory manager will be installed.


Member Function Documentation

int RTCPCompoundPacket::GetCreationError (  )  [inline]

If the raw packet data in the constructor could not be parsed, this function returns the error code of what went wrong. If the packet had an invalid format, the return value is ERR_RTP_RTCPCOMPOUND_INVALIDPACKET.

RTCPPacket* RTCPCompoundPacket::GetNextPacket (  )  [inline]

Returns a pointer to the next individual RTCP packet. Note that no delete call may be done on the RTCPPacket instance which is returned.


The documentation for this class was generated from the following file:
Generated on Thu Feb 8 16:22:21 2007 for jrtplib by  doxygen 1.5.1