|
Time Shield Library
C++ library for working with time
|
Per-server configuration. More...
#include <ntp_client_pool.hpp>
Public Attributes | |
| std::string | host |
| Server host name. | |
| int | port = 123 |
| Server port. | |
| std::chrono::milliseconds | min_interval {15000} |
| Minimum time between queries to the same server. | |
| std::chrono::milliseconds | max_delay {250} |
| Maximum acceptable delay for responses from this server. | |
| std::chrono::milliseconds | backoff_initial {15000} |
| Initial backoff after failure. | |
| std::chrono::milliseconds | backoff_max {std::chrono::minutes(10)} |
| Maximum backoff interval after repeated failures. | |
Per-server configuration.
Definition at line 40 of file ntp_client_pool.hpp.
| std::chrono::milliseconds time_shield::NtpServerConfig::backoff_initial {15000} |
Initial backoff after failure.
Definition at line 47 of file ntp_client_pool.hpp.
| std::chrono::milliseconds time_shield::NtpServerConfig::backoff_max {std::chrono::minutes(10)} |
Maximum backoff interval after repeated failures.
Definition at line 48 of file ntp_client_pool.hpp.
| std::string time_shield::NtpServerConfig::host |
Server host name.
Definition at line 41 of file ntp_client_pool.hpp.
| std::chrono::milliseconds time_shield::NtpServerConfig::max_delay {250} |
Maximum acceptable delay for responses from this server.
Definition at line 45 of file ntp_client_pool.hpp.
| std::chrono::milliseconds time_shield::NtpServerConfig::min_interval {15000} |
Minimum time between queries to the same server.
Definition at line 44 of file ntp_client_pool.hpp.
| int time_shield::NtpServerConfig::port = 123 |
Server port.
Definition at line 42 of file ntp_client_pool.hpp.