Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::rtcp::header::ReceiverReportPacket Class Reference

Receiver Report RTCP packet (RR). More...

#include <headers.h>

Public Member Functions

void reset ()
 Reset to initial state (all zeros). More...
 
const PacketHeaderheader () const
 Get common packet header. More...
 
PacketHeaderheader ()
 Get common packet header. More...
 
uint32_t ssrc () const
 Get SSRC of packet sender. More...
 
void set_ssrc (const uint32_t s)
 Set SSRC of packet sender. More...
 
size_t num_blocks () const
 Get number of blocks. More...
 
const ReceptionReportBlockget_block (const size_t i) const
 Get reception block by index. More...
 
ReceptionReportBlockget_block (const size_t i)
 Get reception block by index. More...
 

Detailed Description

Receiver Report RTCP packet (RR).

RFC 3550 6.4.2. "RR: Receiver Report RTCP packet"

0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
header |V=2|P| RC | PT=RR=201 | length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| SSRC of packet sender |
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
report | SSRC_1 (SSRC of first source) |
block +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
1 | fraction lost | cumulative number of packets lost |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| extended highest sequence number received |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| interarrival jitter |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| last SR (LSR) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| delay since last SR (DLSR) |
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
report | SSRC_2 (SSRC of second source) |
block +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
2 : ... :
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
| profile-specific extensions |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
const PacketHeader & header() const
Get common packet header.
Definition: headers.h:493

Definition at line 474 of file headers.h.

Member Function Documentation

◆ get_block() [1/2]

ReceptionReportBlock& roc::rtcp::header::ReceiverReportPacket::get_block ( const size_t  i)
inline

Get reception block by index.

Definition at line 524 of file headers.h.

◆ get_block() [2/2]

const ReceptionReportBlock& roc::rtcp::header::ReceiverReportPacket::get_block ( const size_t  i) const
inline

Get reception block by index.

Definition at line 518 of file headers.h.

◆ header() [1/2]

PacketHeader& roc::rtcp::header::ReceiverReportPacket::header ( )
inline

Get common packet header.

Definition at line 498 of file headers.h.

◆ header() [2/2]

const PacketHeader& roc::rtcp::header::ReceiverReportPacket::header ( ) const
inline

Get common packet header.

Definition at line 493 of file headers.h.

◆ num_blocks()

size_t roc::rtcp::header::ReceiverReportPacket::num_blocks ( ) const
inline

Get number of blocks.

Definition at line 513 of file headers.h.

◆ reset()

void roc::rtcp::header::ReceiverReportPacket::reset ( )
inline

Reset to initial state (all zeros).

Definition at line 487 of file headers.h.

◆ set_ssrc()

void roc::rtcp::header::ReceiverReportPacket::set_ssrc ( const uint32_t  s)
inline

Set SSRC of packet sender.

Definition at line 508 of file headers.h.

◆ ssrc()

uint32_t roc::rtcp::header::ReceiverReportPacket::ssrc ( ) const
inline

Get SSRC of packet sender.

Definition at line 503 of file headers.h.


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