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 <rtcpsdespacket.h>
Public Types | |
enum | ItemType { None, CNAME, NAME, EMAIL, PHONE, LOC, TOOL, NOTE, PRIV, Unknown } |
Public Types inherited from qrtplib::RTCPPacket | |
enum | PacketType { SR, RR, SDES, BYE, APP, Unknown } |
Public Member Functions | |
RTCPSDESPacket (uint8_t *data, std::size_t datalen) | |
~RTCPSDESPacket () | |
int | GetChunkCount () const |
bool | GotoFirstChunk () |
bool | GotoNextChunk () |
uint32_t | GetChunkSSRC () const |
bool | GotoFirstItem () |
bool | GotoNextItem () |
ItemType | GetItemType () const |
std::size_t | GetItemLength () const |
uint8_t * | GetItemData () |
std::size_t | GetPRIVPrefixLength () const |
uint8_t * | GetPRIVPrefixData () |
std::size_t | GetPRIVValueLength () const |
uint8_t * | GetPRIVValueData () |
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 |
uint8_t * | currentchunk |
int | curchunknum |
std::size_t | itemoffset |
Additional Inherited Members | |
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 source description packet.
Definition at line 55 of file rtcpsdespacket.h.
Identifies the type of an SDES item.
Definition at line 59 of file rtcpsdespacket.h.
qrtplib::RTCPSDESPacket::RTCPSDESPacket | ( | 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 rtcpsdespacket.cpp.
References qrtplib::RTCPCommonHeader::count, curchunknum, currentchunk, itemoffset, qrtplib::RTCPPacket::knownformat, qrtplib::RTCPSDESHeader::length, qrtplib::RTCPCommonHeader::padding, and qrtplib::RTCPSDESHeader::sdesid.
|
inline |
Definition at line 79 of file rtcpsdespacket.h.
|
inline |
Returns the number of SDES chunks in the SDES packet. Returns the number of SDES chunks in the SDES packet. Each chunk has its own SSRC identifier.
Definition at line 154 of file rtcpsdespacket.h.
References qrtplib::RTCPCommonHeader::count.
|
inline |
Returns the SSRC identifier of the current chunk.
Definition at line 202 of file rtcpsdespacket.h.
Referenced by qrtplib::RTPSources::ProcessRTCPCompoundPacket().
|
inline |
Returns the item data of the current item in the current chunk.
Definition at line 291 of file rtcpsdespacket.h.
References qrtplib::RTCPSDESHeader::sdesid.
Referenced by qrtplib::RTPSources::ProcessRTCPCompoundPacket().
|
inline |
Returns the item length of the current item in the current chunk.
Definition at line 279 of file rtcpsdespacket.h.
References qrtplib::RTCPSDESHeader::length, Unit::None, and qrtplib::RTCPSDESHeader::sdesid.
Referenced by qrtplib::RTPSources::ProcessRTCPCompoundPacket().
|
inline |
Returns the SDES item type of the current item in the current chunk.
Definition at line 246 of file rtcpsdespacket.h.
References Unit::None, RTCP_SDES_ID_CNAME, RTCP_SDES_ID_EMAIL, RTCP_SDES_ID_LOCATION, RTCP_SDES_ID_NAME, RTCP_SDES_ID_NOTE, RTCP_SDES_ID_PHONE, RTCP_SDES_ID_PRIVATE, RTCP_SDES_ID_TOOL, and qrtplib::RTCPSDESHeader::sdesid.
Referenced by qrtplib::RTPSources::ProcessRTCPCompoundPacket().
|
inline |
If the current item is an SDES PRIV item, this function returns actual data of the prefix string.
Definition at line 322 of file rtcpsdespacket.h.
References qrtplib::RTCPSDESHeader::length, RTCP_SDES_ID_PRIVATE, and qrtplib::RTCPSDESHeader::sdesid.
Referenced by qrtplib::RTPSources::ProcessRTCPCompoundPacket().
|
inline |
If the current item is an SDES PRIV item, this function returns the length of the prefix string of the private item.
Definition at line 304 of file rtcpsdespacket.h.
References qrtplib::RTCPSDESHeader::length, RTCP_SDES_ID_PRIVATE, and qrtplib::RTCPSDESHeader::sdesid.
Referenced by qrtplib::RTPSources::ProcessRTCPCompoundPacket().
|
inline |
If the current item is an SDES PRIV item, this function returns actual value data of the private item.
Definition at line 360 of file rtcpsdespacket.h.
References qrtplib::RTCPSDESHeader::length, RTCP_SDES_ID_PRIVATE, and qrtplib::RTCPSDESHeader::sdesid.
Referenced by qrtplib::RTPSources::ProcessRTCPCompoundPacket().
|
inline |
If the current item is an SDES PRIV item, this function returns the length of the value string of the private item.
Definition at line 342 of file rtcpsdespacket.h.
References qrtplib::RTCPSDESHeader::length, RTCP_SDES_ID_PRIVATE, and qrtplib::RTCPSDESHeader::sdesid.
Referenced by qrtplib::RTPSources::ProcessRTCPCompoundPacket().
|
inline |
Starts the iteration over the chunks. Starts the iteration. If no SDES chunks are present, the function returns false
. Otherwise, it returns true
and sets the current chunk to be the first chunk.
Definition at line 162 of file rtcpsdespacket.h.
Referenced by qrtplib::RTPSources::ProcessRTCPCompoundPacket().
|
inline |
Starts the iteration over the SDES items in the current chunk. Starts the iteration over the SDES items in the current chunk. If no SDES items are present, the function returns false
. Otherwise, the function sets the current item to be the first one and returns true
.
Definition at line 212 of file rtcpsdespacket.h.
References qrtplib::RTCPSDESHeader::sdesid.
Referenced by qrtplib::RTPSources::ProcessRTCPCompoundPacket().
|
inline |
Sets the current chunk to the next available chunk. Sets the current chunk to the next available chunk. If no next chunk is present, this function returns false
, otherwise it returns true
.
Definition at line 175 of file rtcpsdespacket.h.
References qrtplib::RTCPSDESHeader::length, and qrtplib::RTCPSDESHeader::sdesid.
Referenced by qrtplib::RTPSources::ProcessRTCPCompoundPacket().
|
inline |
Advances the iteration to the next item in the current chunk. If there's another item in the chunk, the current item is set to be the next one and the function returns true
. Otherwise, the function returns false
.
Definition at line 225 of file rtcpsdespacket.h.
References qrtplib::RTCPSDESHeader::length, and qrtplib::RTCPSDESHeader::sdesid.
Referenced by qrtplib::RTPSources::ProcessRTCPCompoundPacket().
|
private |
Definition at line 150 of file rtcpsdespacket.h.
Referenced by RTCPSDESPacket().
|
private |
Definition at line 149 of file rtcpsdespacket.h.
Referenced by RTCPSDESPacket().
|
private |
Definition at line 151 of file rtcpsdespacket.h.
Referenced by RTCPSDESPacket().
|
private |
Definition at line 148 of file rtcpsdespacket.h.