#include <rtcpcompoundpacket.h>
Inheritance diagram for RTCPCompoundPacket:
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. | |
RTCPPacket * | GetNextPacket () |
Returns a pointer to the next individual RTCP packet. |
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.
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.