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

XR Receiver Reference Time Report block. More...

#include <headers.h>

Public Member Functions

void reset ()
 Reset to initial state (all zeros). More...
 
const XrBlockHeaderheader () const
 Get common block header. More...
 
XrBlockHeaderheader ()
 Get common block header. More...
 
packet::ntp_timestamp_t ntp_timestamp () const
 Get NTP timestamp. More...
 
void set_ntp_timestamp (const packet::ntp_timestamp_t t)
 Set NTP timestamp. More...
 

Detailed Description

XR Receiver Reference Time Report block.

RFC 3611 4.4. "Receiver Reference Time Report Block"

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| BT=4 | reserved | block length = 2 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| NTP timestamp, most significant word |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| NTP timestamp, least significant word |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
nanoseconds_t timestamp(clock_t clock)
Get current timestamp in nanoseconds.

Definition at line 1117 of file headers.h.

Member Function Documentation

◆ header() [1/2]

XrBlockHeader& roc::rtcp::header::XrRrtrBlock::header ( )
inline

Get common block header.

Definition at line 1139 of file headers.h.

◆ header() [2/2]

const XrBlockHeader& roc::rtcp::header::XrRrtrBlock::header ( ) const
inline

Get common block header.

Definition at line 1134 of file headers.h.

◆ ntp_timestamp()

packet::ntp_timestamp_t roc::rtcp::header::XrRrtrBlock::ntp_timestamp ( ) const
inline

Get NTP timestamp.

Definition at line 1144 of file headers.h.

◆ reset()

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

Reset to initial state (all zeros).

Definition at line 1128 of file headers.h.

◆ set_ntp_timestamp()

void roc::rtcp::header::XrRrtrBlock::set_ntp_timestamp ( const packet::ntp_timestamp_t  t)
inline

Set NTP timestamp.

Definition at line 1149 of file headers.h.


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