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 <rtcpbyepacket.h>
Public Member Functions | |
RTCPBYEPacket (uint8_t *data, std::size_t datalen) | |
~RTCPBYEPacket () | |
int | GetSSRCCount () const |
uint32_t | GetSSRC (int index) const |
bool | HasReasonForLeaving () const |
std::size_t | GetReasonLength () const |
uint8_t * | GetReasonData () |
Public Member Functions inherited from qrtplib::RTCPPacket | |
virtual | ~RTCPPacket () |
bool | IsKnownFormat () const |
PacketType | GetPacketType () const |
uint8_t * | GetPacketData () |
std::size_t | GetPacketLength () const |
Private Attributes | |
RTPEndian | m_endian |
std::size_t | reasonoffset |
Additional Inherited Members | |
Public Types inherited from qrtplib::RTCPPacket | |
enum | PacketType { SR, RR, SDES, BYE, APP, Unknown } |
Protected Member Functions inherited from qrtplib::RTCPPacket | |
RTCPPacket (PacketType t, uint8_t *d, std::size_t dlen) | |
Protected Attributes inherited from qrtplib::RTCPPacket | |
uint8_t * | data |
std::size_t | datalen |
bool | knownformat |
Describes an RTCP BYE packet.
Definition at line 54 of file rtcpbyepacket.h.
qrtplib::RTCPBYEPacket::RTCPBYEPacket | ( | uint8_t * | data, |
std::size_t | datalen | ||
) |
Creates an instance based on the data in data
with length datalen
. Creates an instance based on the data in data
with length datalen
. Since the data
pointer is referenced inside the class (no copy of the data is made) one must make sure that the memory it points to is valid as long as the class instance exists.
Definition at line 38 of file rtcpbyepacket.cpp.
References qrtplib::RTCPCommonHeader::count, qrtplib::RTCPPacket::knownformat, qrtplib::RTCPCommonHeader::padding, and reasonoffset.
|
inline |
Definition at line 63 of file rtcpbyepacket.h.
|
inline |
Returns the actual reason for leaving data.
Definition at line 125 of file rtcpbyepacket.h.
Referenced by qrtplib::RTPSources::ProcessRTCPCompoundPacket().
|
inline |
Returns the length of the string which describes why the source(s) left.
Definition at line 115 of file rtcpbyepacket.h.
Referenced by qrtplib::RTPSources::ProcessRTCPCompoundPacket().
|
inline |
Returns the SSRC described by index
which may have a value from 0 to GetSSRCCount()-1 (note that no check is performed to see if index
is valid).
Definition at line 98 of file rtcpbyepacket.h.
Referenced by qrtplib::RTPSources::ProcessRTCPCompoundPacket().
|
inline |
Returns the number of SSRC identifiers present in this BYE packet.
Definition at line 89 of file rtcpbyepacket.h.
References qrtplib::RTCPCommonHeader::count.
Referenced by qrtplib::RTPSources::ProcessRTCPCompoundPacket().
|
inline |
Returns true if the BYE packet contains a reason for leaving.
Definition at line 106 of file rtcpbyepacket.h.
|
private |
Definition at line 85 of file rtcpbyepacket.h.
|
private |
Definition at line 86 of file rtcpbyepacket.h.
Referenced by RTCPBYEPacket().