37 #ifndef RTCPAPPPACKET_H
39 #define RTCPAPPPACKET_H
41 #include "rtpconfig.h"
44 #if ! (defined(WIN32) || defined(_WIN32_WCE))
45 #include <netinet/in.h>
89 RTCPCommonHeader *hdr = (RTCPCommonHeader *)data;
98 uint32_t *ssrc = (uint32_t *)(data+
sizeof(RTCPCommonHeader));
107 return (data+
sizeof(RTCPCommonHeader)+
sizeof(uint32_t));
116 return (data+
sizeof(RTCPCommonHeader)+
sizeof(uint32_t)*2);
126 #endif // RTCPAPPPACKET_H
uint8_t GetSubType() const
Returns the subtype contained in the APP packet.
Definition: rtcpapppacket.h:85
uint8_t * GetName()
Returns the name contained in the APP packet.
Definition: rtcpapppacket.h:102
RTCPAPPPacket(uint8_t *data, size_t datalen)
Creates an instance based on the data in data with length datalen.
Describes an RTCP APP packet.
Definition: rtcpapppacket.h:51
Base class for specific types of RTCP packets.
Definition: rtcppacket.h:47
Represents an RTCP compound packet.
Definition: rtcpcompoundpacket.h:50
uint8_t * GetAPPData()
Returns a pointer to the actual data.
Definition: rtcpapppacket.h:110
size_t GetAPPDataLength() const
Returns the length of the actual data.
Definition: rtcpapppacket.h:119
uint32_t GetSSRC() const
Returns the SSRC of the source which sent this packet.
Definition: rtcpapppacket.h:93