JRTPLIB  3.9.0
Public Member Functions | List of all members
jrtplib::RTCPSRPacket Class Reference

Describes an RTCP sender report packet. More...

#include <rtcpsrpacket.h>

Inheritance diagram for jrtplib::RTCPSRPacket:
Inheritance graph
[legend]
Collaboration diagram for jrtplib::RTCPSRPacket:
Collaboration graph
[legend]

Public Member Functions

 RTCPSRPacket (uint8_t *data, size_t datalength)
 Creates an instance based on the data in data with length datalen. More...
 
uint32_t GetSenderSSRC () const
 Returns the SSRC of the participant who sent this packet. More...
 
RTPNTPTime GetNTPTimestamp () const
 Returns the NTP timestamp contained in the sender report. More...
 
uint32_t GetRTPTimestamp () const
 Returns the RTP timestamp contained in the sender report. More...
 
uint32_t GetSenderPacketCount () const
 Returns the sender's packet count contained in the sender report. More...
 
uint32_t GetSenderOctetCount () const
 Returns the sender's octet count contained in the sender report. More...
 
int GetReceptionReportCount () const
 Returns the number of reception report blocks present in this packet. More...
 
uint32_t GetSSRC (int index) const
 Returns the SSRC of the reception report block described by index which may have a value from 0 to GetReceptionReportCount()-1 (note that no check is performed to see if index is valid).
 
uint8_t GetFractionLost (int index) const
 Returns the `fraction lost' field of the reception report described by index which may have a value from 0 to GetReceptionReportCount()-1 (note that no check is performed to see if index is valid).
 
int32_t GetLostPacketCount (int index) const
 Returns the number of lost packets in the reception report block described by index which may have a value from 0 to GetReceptionReportCount()-1 (note that no check is performed to see if index is valid).
 
uint32_t GetExtendedHighestSequenceNumber (int index) const
 Returns the extended highest sequence number of the reception report block described by index which may have a value from 0 to GetReceptionReportCount()-1 (note that no check is performed to see if index is valid).
 
uint32_t GetJitter (int index) const
 Returns the jitter field of the reception report block described by index which may have a value from 0 to GetReceptionReportCount()-1 (note that no check is performed to see if index is valid).
 
uint32_t GetLSR (int index) const
 Returns the LSR field of the reception report block described by index which may have a value from 0 to GetReceptionReportCount()-1 (note that no check is performed to see if index is valid).
 
uint32_t GetDLSR (int index) const
 Returns the DLSR field of the reception report block described by index which may have a value from 0 to GetReceptionReportCount()-1 (note that no check is performed to see if index is valid).
 
- Public Member Functions inherited from jrtplib::RTCPPacket
bool IsKnownFormat () const
 Returns true if the subclass was able to interpret the data and false otherwise. More...
 
PacketType GetPacketType () const
 Returns the actual packet type which the subclass implements. More...
 
uint8_t * GetPacketData ()
 Returns a pointer to the data of this RTCP packet. More...
 
size_t GetPacketLength () const
 Returns the length of this RTCP packet. More...
 

Additional Inherited Members

- Public Types inherited from jrtplib::RTCPPacket
enum  PacketType {
  SR, RR, SDES, BYE,
  APP, Unknown
}
 Identifies the specific kind of RTCP packet. More...
 

Detailed Description

Constructor & Destructor Documentation

jrtplib::RTCPSRPacket::RTCPSRPacket ( uint8_t *  data,
size_t  datalength 
)

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.

Member Function Documentation

RTPNTPTime jrtplib::RTCPSRPacket::GetNTPTimestamp ( ) const
inline
int jrtplib::RTCPSRPacket::GetReceptionReportCount ( ) const
inline
uint32_t jrtplib::RTCPSRPacket::GetRTPTimestamp ( ) const
inline
uint32_t jrtplib::RTCPSRPacket::GetSenderOctetCount ( ) const
inline
uint32_t jrtplib::RTCPSRPacket::GetSenderPacketCount ( ) const
inline
uint32_t jrtplib::RTCPSRPacket::GetSenderSSRC ( ) const
inline

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