class Poco::Net::NTPPacket

Overview

This class is the NTP packet abstraction. Moreā€¦

#include <NTPPacket.h>

class NTPPacket
{
public:
    // construction

    NTPPacket();
    NTPPacket(Poco::UInt8* packet);

    // methods

    void
    packet(Poco::UInt8* packet) const;

    void
    setPacket(Poco::UInt8* packet);

    Poco::Int8
    leapIndicator() const;

    Poco::Int8
    version() const;

    Poco::Int8
    mode() const;

    Poco::Int8
    stratum() const;

    Poco::Int8
    pool() const;

    Poco::Int8
    precision() const;

    Poco::Int32
    rootDelay() const;

    Poco::Int32
    rootDispersion() const;

    Poco::Int32
    referenceId() const;

    Poco::Int64
    referenceTimestamp() const;

    Poco::Int64
    originateTimestamp() const;

    Poco::Int64
    receiveTimestamp() const;

    Poco::Int64
    transmitTimestamp() const;

    Poco::Timestamp
    referenceTime() const;

    Poco::Timestamp
    originateTime() const;

    Poco::Timestamp
    receiveTime() const;

    Poco::Timestamp
    transmitTime() const;
};

Detailed Documentation

This class is the NTP packet abstraction.

Construction

NTPPacket()

Creates an NTPPacket.

NTPPacket(Poco::UInt8* packet)

Creates an NTPPacket.

Assumed to have at least 48 bytes.

Methods

void
packet(Poco::UInt8* packet) const

Returns the NTP packet.

Assumed to have at least 48 bytes.

void
setPacket(Poco::UInt8* packet)

Returns the NTP packet.

Assumed to have exactly 48 bytes.

Poco::Int8
leapIndicator() const

Returns the leap indicator.

Poco::Int8
version() const

Returns the version.

Poco::Int8
mode() const

Returns the mode.

Poco::Int8
stratum() const

Returns the stratum.

Poco::Int8
pool() const

Returns the pool.

Poco::Int8
precision() const

Returns the precision.

Poco::Int32
rootDelay() const

Returns the root delay.

Poco::Int32
rootDispersion() const

Returns the root dispersion.

Poco::Int32
referenceId() const

Returns the reference id.

Poco::Int64
referenceTimestamp() const

Returns the reference timestamp.

Poco::Int64
originateTimestamp() const

Returns the originate timestamp.

Poco::Int64
receiveTimestamp() const

Returns the receive timestamp.

Poco::Int64
transmitTimestamp() const

Returns the transmit timestamp.

Poco::Timestamp
referenceTime() const

Returns the reference time.

Poco::Timestamp
originateTime() const

Returns the originate time.

Poco::Timestamp
receiveTime() const

Returns the receive time.

Poco::Timestamp
transmitTime() const

Returns the transmit time.