Library: Net
Package: NTP
Header: Poco/Net/NTPPacket.h
This class is the NTP packet abstraction.
Member Functions: leapIndicator, mode, originateTime, originateTimestamp, packet, pool, precision, receiveTime, receiveTimestamp, referenceId, referenceTime, referenceTimestamp, rootDelay, rootDispersion, setPacket, stratum, transmitTime, transmitTimestamp, version
NTPPacket();
Creates an NTPPacket.
NTPPacket(
Poco::UInt8 * packet
);
Creates an NTPPacket.
Assumed to have at least 48 bytes.
~NTPPacket();
Destroys the NTPPacket.
Poco::Int8 leapIndicator() const;
Returns the leap indicator.
Poco::Int8 mode() const;
Returns the mode.
Poco::Timestamp originateTime() const;
Returns the originate time
Poco::Int64 originateTimestamp() const;
Returns the originate timestamp
void packet(
Poco::UInt8 * packet
) const;
Returns the NTP packet.
Assumed to have at least 48 bytes.
Poco::Int8 pool() const;
Returns the pool.
Poco::Int8 precision() const;
Returns the precision
Poco::Timestamp receiveTime() const;
Returns the receive time
Poco::Int64 receiveTimestamp() const;
Returns the receive timestamp
Poco::Int32 referenceId() const;
Returns the reference id
Poco::Timestamp referenceTime() const;
Returns the reference time
Poco::Int64 referenceTimestamp() const;
Returns the reference timestamp
Poco::Int32 rootDelay() const;
Returns the root delay
Poco::Int32 rootDispersion() const;
Returns the root dispersion
void setPacket(
Poco::UInt8 * packet
);
Returns the NTP packet.
Assumed to have exactly 48 bytes.
Poco::Int8 stratum() const;
Returns the stratum.
Poco::Timestamp transmitTime() const;
Returns the transmit time
Poco::Int64 transmitTimestamp() const;
Returns the transmit timestamp
Poco::Int8 version() const;
Returns the version.