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 <rtprawpacket.h>
Public Member Functions | |
RTPRawPacket (const uint8_t *data, std::size_t datalen, const RTPAddress &address, RTPTime &recvtime, bool rtp) | |
~RTPRawPacket () | |
uint8_t * | GetData () |
std::size_t | GetDataLength () const |
RTPTime | GetReceiveTime () const |
const RTPAddress & | GetSenderAddress () const |
bool | IsRTP () const |
void | SetData (const uint8_t *data, std::size_t datalen) |
void | SetSenderAddress (const RTPAddress &address) |
Private Member Functions | |
void | DeleteData () |
Private Attributes | |
uint8_t * | packetdata |
std::size_t | packetdatalength |
RTPTime | receivetime |
RTPAddress | senderaddress |
bool | isrtp |
This class is used by the transmission component to store the incoming RTP and RTCP data in.
Definition at line 50 of file rtprawpacket.h.
|
inline |
Creates an instance which stores data from data
with length datalen
. Creates an instance which stores data from data
with length datalen
. Only the pointer to the data is stored, no actual copy is made! The address from which this packet originated is set to address
and the time at which the packet was received is set to recvtime
. The flag which indicates whether this data is RTP or RTCP data is set to rtp
. A memory manager can be installed as well.
Definition at line 110 of file rtprawpacket.h.
References isrtp, packetdata, packetdatalength, and senderaddress.
|
inline |
Definition at line 120 of file rtprawpacket.h.
References DeleteData().
|
inlineprivate |
Definition at line 125 of file rtprawpacket.h.
References packetdata.
Referenced by IsRTP(), and ~RTPRawPacket().
|
inline |
Returns the pointer to the data which is contained in this packet.
Definition at line 64 of file rtprawpacket.h.
References packetdata.
Referenced by qrtplib::RTPPacket::ParseRawPacket(), and qrtplib::RTCPCompoundPacket::RTCPCompoundPacket().
|
inline |
Returns the length of the packet described by this instance.
Definition at line 70 of file rtprawpacket.h.
References packetdatalength.
Referenced by qrtplib::RTPPacket::ParseRawPacket(), and qrtplib::RTCPCompoundPacket::RTCPCompoundPacket().
|
inline |
Returns the time at which this packet was received.
Definition at line 76 of file rtprawpacket.h.
References receivetime.
Referenced by qrtplib::RTPSession::ProcessPolledData(), and qrtplib::RTPSources::ProcessRawPacket().
|
inline |
Returns the address stored in this packet.
Definition at line 82 of file rtprawpacket.h.
References senderaddress.
Referenced by qrtplib::RTPSession::ProcessPolledData(), and qrtplib::RTPSources::ProcessRawPacket().
|
inline |
Returns true
if this data is RTP data, false
if it is RTCP data.
Definition at line 88 of file rtprawpacket.h.
References DeleteData(), isrtp, SetData(), and SetSenderAddress().
Referenced by qrtplib::RTPPacket::ParseRawPacket(), qrtplib::RTPSources::ProcessRawPacket(), and qrtplib::RTCPCompoundPacket::RTCPCompoundPacket().
|
inline |
Deallocates the previously stored data and replaces it with the data that's specified, can be useful when e.g. decrypting data in RTPSession::OnChangeIncomingData
Definition at line 134 of file rtprawpacket.h.
References packetdata, and packetdatalength.
Referenced by IsRTP().
|
inline |
Deallocates the currently stored RTPAddress instance and replaces it with the one that's specified (you probably don't need this function).
Definition at line 145 of file rtprawpacket.h.
References senderaddress.
Referenced by IsRTP().
|
private |
Definition at line 107 of file rtprawpacket.h.
Referenced by IsRTP(), and RTPRawPacket().
|
private |
Definition at line 103 of file rtprawpacket.h.
Referenced by DeleteData(), GetData(), RTPRawPacket(), and SetData().
|
private |
Definition at line 104 of file rtprawpacket.h.
Referenced by GetDataLength(), RTPRawPacket(), and SetData().
|
private |
Definition at line 105 of file rtprawpacket.h.
Referenced by GetReceiveTime().
|
private |
Definition at line 106 of file rtprawpacket.h.
Referenced by GetSenderAddress(), RTPRawPacket(), and SetSenderAddress().