1#ifndef XRPL_PEERFINDER_FIXED_H_INCLUDED
2#define XRPL_PEERFINDER_FIXED_H_INCLUDED
4#include <xrpld/peerfinder/detail/Tuning.h>
typename Clock::time_point time_point
Metadata for a Fixed slot.
clock_type::time_point const & when() const
Returns the time after which we shoud allow a connection attempt.
clock_type::time_point m_when
Fixed(Fixed const &)=default
void failure(clock_type::time_point const &now)
Updates metadata to reflect a failed connection.
void success(clock_type::time_point const &now)
Updates metadata to reflect a successful connection.
static std::array< int, 10 > const connectionBackoff
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.