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 Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
qrtplib::RTCPPacket Class Reference

#include <rtcppacket.h>

+ Inheritance diagram for qrtplib::RTCPPacket:

Public Types

enum  PacketType {
  SR, RR, SDES, BYE,
  APP, Unknown
}
 

Public Member Functions

virtual ~RTCPPacket ()
 
bool IsKnownFormat () const
 
PacketType GetPacketType () const
 
uint8_tGetPacketData ()
 
std::size_t GetPacketLength () const
 

Protected Member Functions

 RTCPPacket (PacketType t, uint8_t *d, std::size_t dlen)
 

Protected Attributes

uint8_tdata
 
std::size_t datalen
 
bool knownformat
 

Private Attributes

const PacketType packettype
 

Detailed Description

Base class for specific types of RTCP packets.

Definition at line 51 of file rtcppacket.h.

Member Enumeration Documentation

◆ PacketType

Identifies the specific kind of RTCP packet.

Enumerator
SR 

An RTCP sender report.

RR 

An RTCP receiver report.

SDES 

An RTCP source description packet.

BYE 

An RTCP bye packet.

APP 

An RTCP packet containing application specific data.

Unknown 

The type of RTCP packet was not recognized.

Definition at line 55 of file rtcppacket.h.

Constructor & Destructor Documentation

◆ RTCPPacket()

qrtplib::RTCPPacket::RTCPPacket ( PacketType  t,
uint8_t d,
std::size_t  dlen 
)
inlineprotected

Definition at line 65 of file rtcppacket.h.

References knownformat.

65  :
66  data(d), datalen(dlen), packettype(t)
67  {
68  knownformat = false;
69  }
const PacketType packettype
Definition: rtcppacket.h:104
std::size_t datalen
Definition: rtcppacket.h:101

◆ ~RTCPPacket()

virtual qrtplib::RTCPPacket::~RTCPPacket ( )
inlinevirtual

Definition at line 71 of file rtcppacket.h.

72  {
73  }

Member Function Documentation

◆ GetPacketData()

uint8_t* qrtplib::RTCPPacket::GetPacketData ( )
inline

Returns a pointer to the data of this RTCP packet.

Definition at line 88 of file rtcppacket.h.

References data.

89  {
90  return data;
91  }

◆ GetPacketLength()

std::size_t qrtplib::RTCPPacket::GetPacketLength ( ) const
inline

Returns the length of this RTCP packet.

Definition at line 94 of file rtcppacket.h.

References datalen.

95  {
96  return datalen;
97  }
std::size_t datalen
Definition: rtcppacket.h:101

◆ GetPacketType()

PacketType qrtplib::RTCPPacket::GetPacketType ( ) const
inline

Returns the actual packet type which the subclass implements.

Definition at line 82 of file rtcppacket.h.

References packettype.

Referenced by qrtplib::RTCPScheduler::AnalyseIncoming(), qrtplib::RTCPScheduler::AnalyseOutgoing(), and qrtplib::RTPSources::ProcessRTCPCompoundPacket().

83  {
84  return packettype;
85  }
const PacketType packettype
Definition: rtcppacket.h:104
+ Here is the caller graph for this function:

◆ IsKnownFormat()

bool qrtplib::RTCPPacket::IsKnownFormat ( ) const
inline

Returns true if the subclass was able to interpret the data and false otherwise.

Definition at line 76 of file rtcppacket.h.

References knownformat.

Referenced by qrtplib::RTPSources::ProcessRTCPCompoundPacket().

77  {
78  return knownformat;
79  }
+ Here is the caller graph for this function:

Member Data Documentation

◆ data

uint8_t* qrtplib::RTCPPacket::data
protected

Definition at line 100 of file rtcppacket.h.

Referenced by GetPacketData().

◆ datalen

std::size_t qrtplib::RTCPPacket::datalen
protected

Definition at line 101 of file rtcppacket.h.

Referenced by GetPacketLength().

◆ knownformat

bool qrtplib::RTCPPacket::knownformat
protected

◆ packettype

const PacketType qrtplib::RTCPPacket::packettype
private

Definition at line 104 of file rtcppacket.h.

Referenced by GetPacketType().


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