Time Shield Library
C++ library for working with time
Loading...
Searching...
No Matches
time_shield::NtpClientPoolT< ClientT >::ServerState Struct Reference

Runtime state for a configured server. More...

#include <ntp_client_pool.hpp>

Public Attributes

NtpServerConfig cfg
 
std::chrono::steady_clock::time_point next_allowed {}
 
std::chrono::milliseconds backoff {0}
 
int fail_count = 0
 
int64_t last_offset_us = 0
 
int64_t last_delay_us = 0
 
int last_error = 0
 
bool is_last_ok = false
 

Detailed Description

template<class ClientT>
struct time_shield::NtpClientPoolT< ClientT >::ServerState

Runtime state for a configured server.

Definition at line 545 of file ntp_client_pool.hpp.

Member Data Documentation

◆ backoff

template<class ClientT>
std::chrono::milliseconds time_shield::NtpClientPoolT< ClientT >::ServerState::backoff {0}

Definition at line 549 of file ntp_client_pool.hpp.

◆ cfg

template<class ClientT>
NtpServerConfig time_shield::NtpClientPoolT< ClientT >::ServerState::cfg

Definition at line 546 of file ntp_client_pool.hpp.

◆ fail_count

template<class ClientT>
int time_shield::NtpClientPoolT< ClientT >::ServerState::fail_count = 0

Definition at line 551 of file ntp_client_pool.hpp.

◆ is_last_ok

template<class ClientT>
bool time_shield::NtpClientPoolT< ClientT >::ServerState::is_last_ok = false

Definition at line 556 of file ntp_client_pool.hpp.

◆ last_delay_us

template<class ClientT>
int64_t time_shield::NtpClientPoolT< ClientT >::ServerState::last_delay_us = 0

Definition at line 554 of file ntp_client_pool.hpp.

◆ last_error

template<class ClientT>
int time_shield::NtpClientPoolT< ClientT >::ServerState::last_error = 0

Definition at line 555 of file ntp_client_pool.hpp.

◆ last_offset_us

template<class ClientT>
int64_t time_shield::NtpClientPoolT< ClientT >::ServerState::last_offset_us = 0

Definition at line 553 of file ntp_client_pool.hpp.

◆ next_allowed

template<class ClientT>
std::chrono::steady_clock::time_point time_shield::NtpClientPoolT< ClientT >::ServerState::next_allowed {}

Definition at line 548 of file ntp_client_pool.hpp.


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