jrtplib  3.8.2
Public Member Functions | List of all members
RTCPCompoundPacket Class Reference

Represents an RTCP compound packet. More...

#include <rtcpcompoundpacket.h>

Inheritance diagram for RTCPCompoundPacket:
Inheritance graph
[legend]

Public Member Functions

 RTCPCompoundPacket (RTPRawPacket &rawpack, RTPMemoryManager *memmgr=0)
 Creates an RTCPCompoundPacket instance from the data in rawpack, installing a memory manager if specified. More...
 
 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. More...
 
int GetCreationError ()
 Checks if the RTCP compound packet was created successfully. More...
 
uint8_t * GetCompoundPacketData ()
 Returns a pointer to the data of the entire RTCP compound packet. More...
 
size_t GetCompoundPacketLength ()
 Returns the size of the entire RTCP compound packet. More...
 
void GotoFirstPacket ()
 Starts the iteration over the individual RTCP packets in the RTCP compound packet. More...
 
RTCPPacketGetNextPacket ()
 Returns a pointer to the next individual RTCP packet. More...
 

Detailed Description

Constructor & Destructor Documentation

RTCPCompoundPacket::RTCPCompoundPacket ( RTPRawPacket rawpack,
RTPMemoryManager memmgr = 0 
)
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

uint8_t* RTCPCompoundPacket::GetCompoundPacketData ( )
inline
size_t RTCPCompoundPacket::GetCompoundPacketLength ( )
inline
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.

void RTCPCompoundPacket::GotoFirstPacket ( )
inline

The documentation for this class was generated from the following file: