API Documentation
Loading...
Searching...
No Matches
NtpReply Class Reference

#include <NtpReply.h>

Public Member Functions

 NtpReply ()
 
 NtpReply (NtpFullPacket packet, Time destinationTime)
 
NtpLeapIndicator leapIndicator () const
 
quint8 versionNumber () const
 
NtpMode mode () const
 
quint8 stratum () const
 
qreal pollInterval () const
 
qreal precision () const
 
Time referenceTime () const
 
Time originTime () const
 
Time receiveTime () const
 
Time transmitTime () const
 
Time destinationTime () const
 
const NtpFullPacketrawData () const
 

Constructor & Destructor Documentation

◆ NtpReply() [1/2]

NtpReply ( )
inline

Default constructor, constructs a null NTP reply.

◆ NtpReply() [2/2]

NtpReply ( NtpFullPacket packet,
Time destinationTime )
inline

Constructs an NTP reply given an NTP packet and current time.

Parameters
packetNTP packet.
destinationTimeTime at the client when the reply arrived from the server.

Member Function Documentation

◆ destinationTime()

Time destinationTime ( ) const
inline
Returns
Time at the client when the reply arrived from the server.

◆ leapIndicator()

NtpLeapIndicator leapIndicator ( ) const
inline
Returns
Leap indicator.

◆ mode()

NtpMode mode ( ) const
inline
Returns
Ntp mode.

◆ originTime()

Time originTime ( ) const
inline
Returns
Time at the client when the request departed for the server.

◆ pollInterval()

qreal pollInterval ( ) const
inline
Returns
Maximum interval between successive messages, in seconds.

◆ precision()

qreal precision ( ) const
inline
Returns
Clock precision, in seconds.

◆ rawData()

const NtpFullPacket & rawData ( ) const
inline
Returns
Raw NTP reply, for the curious user.

◆ receiveTime()

Time receiveTime ( ) const
inline
Returns
Time at the server when the request arrived from the client.

◆ referenceTime()

Time referenceTime ( ) const
inline
Returns
Time when the system clock was last set or corrected.

◆ stratum()

quint8 stratum ( ) const
inline
Returns
Stratum.

◆ transmitTime()

Time transmitTime ( ) const
inline
Returns
Time at the server when the response left for the client.

◆ versionNumber()

quint8 versionNumber ( ) const
inline
Returns
NTP version number.

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