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.
Public Member Functions | List of all members
qrtplib::RTCPUnknownPacket Class Reference

#include <rtcpunknownpacket.h>

+ Inheritance diagram for qrtplib::RTCPUnknownPacket:
+ Collaboration diagram for qrtplib::RTCPUnknownPacket:

Public Member Functions

 RTCPUnknownPacket (uint8_t *data, std::size_t datalen)
 
 ~RTCPUnknownPacket ()
 
- Public Member Functions inherited from qrtplib::RTCPPacket
virtual ~RTCPPacket ()
 
bool IsKnownFormat () const
 
PacketType GetPacketType () const
 
uint8_tGetPacketData ()
 
std::size_t GetPacketLength () const
 

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_tdata
 
std::size_t datalen
 
bool knownformat
 

Detailed Description

Describes an RTCP packet of unknown type. Describes an RTCP packet of unknown type. This class doesn't have any extra member functions besides the ones it inherited. Note that since an unknown packet type doesn't have any format to check against, the IsKnownFormat function will trivially return true.

Definition at line 54 of file rtcpunknownpacket.h.

Constructor & Destructor Documentation

◆ RTCPUnknownPacket()

qrtplib::RTCPUnknownPacket::RTCPUnknownPacket ( uint8_t data,
std::size_t  datalen 
)
inline

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 62 of file rtcpunknownpacket.h.

References qrtplib::RTCPPacket::knownformat.

62  :
64  {
65  // Since we don't expect a format, we'll trivially put knownformat = true
66  knownformat = true;
67  }
std::size_t datalen
Definition: rtcppacket.h:101
RTCPPacket(PacketType t, uint8_t *d, std::size_t dlen)
Definition: rtcppacket.h:65

◆ ~RTCPUnknownPacket()

qrtplib::RTCPUnknownPacket::~RTCPUnknownPacket ( )
inline

Definition at line 68 of file rtcpunknownpacket.h.

69  {
70  }

The documentation for this class was generated from the following file: