37 #ifndef RTCPAPPPACKET_H
39 #define RTCPAPPPACKET_H
41 #include "rtpconfig.h"
44 #ifdef RTP_SUPPORT_NETINET_IN
45 #include <netinet/in.h>
46 #endif // RTP_SUPPORT_NETINET_IN
51 class RTCPCompoundPacket;
66 uint8_t GetSubType()
const;
69 uint32_t GetSSRC()
const;
77 uint8_t *GetAPPData();
80 size_t GetAPPDataLength()
const;
92 RTCPCommonHeader *hdr = (RTCPCommonHeader *)data;
101 uint32_t *ssrc = (uint32_t *)(data+
sizeof(RTCPCommonHeader));
110 return (data+
sizeof(RTCPCommonHeader)+
sizeof(uint32_t));
119 return (data+
sizeof(RTCPCommonHeader)+
sizeof(uint32_t)*2);
131 #endif // RTCPAPPPACKET_H
Describes an RTCP APP packet.
Definition: rtcpapppacket.h:54
uint8_t * GetName()
Returns the name contained in the APP packet.
Definition: rtcpapppacket.h:105
size_t GetAPPDataLength() const
Returns the length of the actual data.
Definition: rtcpapppacket.h:122
uint8_t GetSubType() const
Returns the subtype contained in the APP packet.
Definition: rtcpapppacket.h:88
uint8_t * GetAPPData()
Returns a pointer to the actual data.
Definition: rtcpapppacket.h:113
Base class for specific types of RTCP packets.
Definition: rtcppacket.h:50
uint32_t GetSSRC() const
Returns the SSRC of the source which sent this packet.
Definition: rtcpapppacket.h:96