Library: Net
Package: NTP
Header: Poco/Net/NTPClient.h
This class provides NTP (Network Time Protocol) client functionality.
Member Functions: request
explicit NTPClient(
IPAddress::Family family,
int timeout = 3000000
);
Creates an NTP client.
~NTPClient();
Destroys the NTP client.
int request(
SocketAddress & address
) const;
Request the time from the server at address. Notifications are posted for events.
Returns the number of valid replies.
int request(
const std::string & address
) const;
Request the time from the server at address. Notifications are posted for events.
Returns the number of valid replies.
mutable Poco::BasicEvent < NTPEventArgs > response;