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

64-bit NTP 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. More...
 

Detailed Description

64-bit NTP 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| NTP timestamp, most significant word |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| NTP timestamp, least significant word |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
nanoseconds_t timestamp(clock_t clock)
Get current timestamp in nanoseconds.

From RFC 3550.

Definition at line 253 of file headers.h.

Member Function Documentation

◆ set_value()

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

Set NTP timestamp value.

Definition at line 270 of file headers.h.

◆ value()

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

Get NTP timestamp value.

Definition at line 264 of file headers.h.


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