Time Shield Library
C++ library for working with time
Loading...
Searching...
No Matches
time_shield::NtpServerConfig Struct Reference

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.
 

Detailed Description

Per-server configuration.

Definition at line 40 of file ntp_client_pool.hpp.

Member Data Documentation

◆ backoff_initial

std::chrono::milliseconds time_shield::NtpServerConfig::backoff_initial {15000}

Initial backoff after failure.

Definition at line 47 of file ntp_client_pool.hpp.

◆ backoff_max

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.

◆ host

std::string time_shield::NtpServerConfig::host

Server host name.

Definition at line 41 of file ntp_client_pool.hpp.

◆ max_delay

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.

◆ min_interval

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.

◆ port

int time_shield::NtpServerConfig::port = 123

Server port.

Definition at line 42 of file ntp_client_pool.hpp.


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