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

32-bit NTP absolute time (stored as middle 32 bits of 64-bit timestamp). More...

#include <headers.h>

Public Member Functions

packet::ntp_timestamp_t value () const
 Get NTP timestamp value. More...
 
void set_value (const packet::ntp_timestamp_t t)
 Set NTP timestamp value. Stores middle 32 bits of timestamp. High and low 16 bits are just truncated. More...
 

Detailed Description

32-bit NTP absolute time (stored as middle 32 bits of 64-bit timestamp).

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Time |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

From RFC 3550.

Definition at line 287 of file headers.h.

Member Function Documentation

◆ set_value()

void roc::rtcp::header::NtpTimestamp32::set_value ( const packet::ntp_timestamp_t  t)
inline

Set NTP timestamp value. Stores middle 32 bits of timestamp. High and low 16 bits are just truncated.

Definition at line 304 of file headers.h.

◆ value()

packet::ntp_timestamp_t roc::rtcp::header::NtpTimestamp32::value ( ) const
inline

Get NTP timestamp value.

Definition at line 297 of file headers.h.


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