CatapultServer  v0.5.0.1 (Elephant)
catapult::timesync::CommunicationTimestamps Struct Reference

Represents the network timestamps for sending and receiving a time synchronization request / response. More...

Collaboration diagram for catapult::timesync::CommunicationTimestamps:

Public Member Functions

 CommunicationTimestamps ()=default
 Creates default communication timestamps. More...
 
 CommunicationTimestamps (Timestamp sendTimestamp, Timestamp receiveTimestamp)
 Creates communication timestamps around sendTimestamp and receiveTimestamp. More...
 
constexpr bool operator== (const CommunicationTimestamps &rhs) const
 Returns true if these communication timestamps are equal to rhs. More...
 
constexpr bool operator!= (const CommunicationTimestamps &rhs) const
 Returns true if these communication timestamps are not equal to rhs. More...
 

Public Attributes

Timestamp SendTimestamp
 Time when the request/response was sent. More...
 
Timestamp ReceiveTimestamp
 Time when the request/response was received. More...
 

Detailed Description

Represents the network timestamps for sending and receiving a time synchronization request / response.

Constructor & Destructor Documentation

◆ CommunicationTimestamps() [1/2]

catapult::timesync::CommunicationTimestamps::CommunicationTimestamps ( )
default

Creates default communication timestamps.

◆ CommunicationTimestamps() [2/2]

catapult::timesync::CommunicationTimestamps::CommunicationTimestamps ( Timestamp  sendTimestamp,
Timestamp  receiveTimestamp 
)
inline

Creates communication timestamps around sendTimestamp and receiveTimestamp.

Member Function Documentation

◆ operator!=()

constexpr bool catapult::timesync::CommunicationTimestamps::operator!= ( const CommunicationTimestamps rhs) const
inlineconstexpr

Returns true if these communication timestamps are not equal to rhs.

◆ operator==()

constexpr bool catapult::timesync::CommunicationTimestamps::operator== ( const CommunicationTimestamps rhs) const
inlineconstexpr

Returns true if these communication timestamps are equal to rhs.

Member Data Documentation

◆ ReceiveTimestamp

Timestamp catapult::timesync::CommunicationTimestamps::ReceiveTimestamp

Time when the request/response was received.

◆ SendTimestamp

Timestamp catapult::timesync::CommunicationTimestamps::SendTimestamp

Time when the request/response was sent.


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