SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <rtcpcompoundpacket.h>
Public Member Functions | |
RTCPCompoundPacket (RTPRawPacket &rawpack) | |
RTCPCompoundPacket (uint8_t *packet, std::size_t len) | |
virtual | ~RTCPCompoundPacket () |
int | GetCreationError () |
uint8_t * | GetCompoundPacketData () |
std::size_t | GetCompoundPacketLength () |
void | GotoFirstPacket () |
RTCPPacket * | GetNextPacket () |
Protected Member Functions | |
RTCPCompoundPacket () | |
void | ClearPacketList () |
int | ParseData (uint8_t *packet, std::size_t len) |
Protected Attributes | |
RTPEndian | m_endian |
int | error |
uint8_t * | compoundpacket |
std::size_t | compoundpacketlength |
std::list< RTCPPacket * > | rtcppacklist |
std::list< RTCPPacket * >::const_iterator | rtcppackit |
Represents an RTCP compound packet.
Definition at line 55 of file rtcpcompoundpacket.h.
qrtplib::RTCPCompoundPacket::RTCPCompoundPacket | ( | RTPRawPacket & | rawpack | ) |
Creates an RTCPCompoundPacket instance from the data in rawpack
, installing a memory manager if specified.
Definition at line 48 of file rtcpcompoundpacket.cpp.
References compoundpacket, compoundpacketlength, ERR_RTP_RTCPCOMPOUND_INVALIDPACKET, error, qrtplib::RTPRawPacket::GetData(), qrtplib::RTPRawPacket::GetDataLength(), qrtplib::RTPRawPacket::IsRTP(), ParseData(), rtcppackit, and rtcppacklist.
qrtplib::RTCPCompoundPacket::RTCPCompoundPacket | ( | uint8_t * | packet, |
std::size_t | len | ||
) |
Creates an RTCPCompoundPacket instance from the data in packet}
, with size len
.
Definition at line 75 of file rtcpcompoundpacket.cpp.
References compoundpacket, compoundpacketlength, error, ParseData(), rtcppackit, and rtcppacklist.
|
protected |
Definition at line 92 of file rtcpcompoundpacket.cpp.
References compoundpacket, compoundpacketlength, and error.
|
virtual |
Definition at line 188 of file rtcpcompoundpacket.cpp.
References ClearPacketList().
|
protected |
Definition at line 193 of file rtcpcompoundpacket.cpp.
References rtcppackit, and rtcppacklist.
Referenced by ParseData(), and ~RTCPCompoundPacket().
|
inline |
Returns a pointer to the data of the entire RTCP compound packet.
Definition at line 78 of file rtcpcompoundpacket.h.
Referenced by qrtplib::RTPSession::BYEDestroy(), qrtplib::RTPSession::ProcessPolledData(), and qrtplib::RTPSession::SendRTCPAPPPacket().
|
inline |
Returns the size of the entire RTCP compound packet.
Definition at line 84 of file rtcpcompoundpacket.h.
Referenced by qrtplib::RTCPScheduler::AnalyseIncoming(), qrtplib::RTCPScheduler::AnalyseOutgoing(), qrtplib::RTPSession::BYEDestroy(), qrtplib::RTPSession::ProcessPolledData(), and qrtplib::RTPSession::SendRTCPAPPPacket().
|
inline |
Checks if the RTCP compound packet was created successfully. 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
.
Definition at line 72 of file rtcpcompoundpacket.h.
Referenced by qrtplib::RTPSources::ProcessRawPacket().
|
inline |
Returns a pointer to the next individual RTCP packet. Returns a pointer to the next individual RTCP packet. Note that no delete
call may be done on the RTCPPacket instance which is returned.
Definition at line 99 of file rtcpcompoundpacket.h.
Referenced by qrtplib::RTCPScheduler::AnalyseIncoming(), qrtplib::RTCPScheduler::AnalyseOutgoing(), and qrtplib::RTPSources::ProcessRTCPCompoundPacket().
|
inline |
Starts the iteration over the individual RTCP packets in the RTCP compound packet.
Definition at line 90 of file rtcpcompoundpacket.h.
Referenced by qrtplib::RTCPScheduler::AnalyseIncoming(), qrtplib::RTCPScheduler::AnalyseOutgoing(), and qrtplib::RTPSources::ProcessRTCPCompoundPacket().
|
protected |
Definition at line 99 of file rtcpcompoundpacket.cpp.
References ClearPacketList(), ERR_RTP_RTCPCOMPOUND_INVALIDPACKET, qrtplib::RTCPCommonHeader::length, m_endian, qrtplib::RTCPCommonHeader::packettype, qrtplib::RTCPCommonHeader::padding, qrtplib::RTPEndian::qToHost(), rtcppacklist, RTP_RTCPTYPE_APP, RTP_RTCPTYPE_BYE, RTP_RTCPTYPE_RR, RTP_RTCPTYPE_SDES, RTP_RTCPTYPE_SR, RTP_VERSION, and qrtplib::RTCPCommonHeader::version.
Referenced by RTCPCompoundPacket().
|
protected |
Definition at line 115 of file rtcpcompoundpacket.h.
Referenced by qrtplib::RTCPCompoundPacketBuilder::EndBuild(), qrtplib::RTCPCompoundPacketBuilder::InitBuild(), RTCPCompoundPacket(), and qrtplib::RTCPCompoundPacketBuilder::~RTCPCompoundPacketBuilder().
|
protected |
Definition at line 116 of file rtcpcompoundpacket.h.
Referenced by qrtplib::RTCPCompoundPacketBuilder::EndBuild(), and RTCPCompoundPacket().
|
protected |
Definition at line 113 of file rtcpcompoundpacket.h.
Referenced by RTCPCompoundPacket().
|
protected |
Definition at line 112 of file rtcpcompoundpacket.h.
Referenced by ParseData().
|
protected |
Definition at line 119 of file rtcpcompoundpacket.h.
Referenced by ClearPacketList(), and RTCPCompoundPacket().
|
protected |
Definition at line 118 of file rtcpcompoundpacket.h.
Referenced by ClearPacketList(), qrtplib::RTCPCompoundPacketBuilder::EndBuild(), ParseData(), and RTCPCompoundPacket().