rippled
Public Member Functions | Private Attributes | List of all members
ripple::PeerFinder::Fixed Class Reference

Metadata for a Fixed slot. More...

Collaboration diagram for ripple::PeerFinder::Fixed:
Collaboration graph
[legend]

Public Member Functions

 Fixed (clock_type &clock)
 
 Fixed (Fixed const &)=default
 
clock_type::time_point const & when () const
 Returns the time after which we shoud allow a connection attempt. More...
 
void failure (clock_type::time_point const &now)
 Updates metadata to reflect a failed connection. More...
 
void success (clock_type::time_point const &now)
 Updates metadata to reflect a successful connection. More...
 

Private Attributes

clock_type::time_point m_when
 
std::size_t m_failures
 

Detailed Description

Metadata for a Fixed slot.

Definition at line 29 of file Fixed.h.

Constructor & Destructor Documentation

◆ Fixed() [1/2]

ripple::PeerFinder::Fixed::Fixed ( clock_type clock)
explicit

Definition at line 32 of file Fixed.h.

◆ Fixed() [2/2]

ripple::PeerFinder::Fixed::Fixed ( Fixed const &  )
default

Member Function Documentation

◆ when()

clock_type::time_point const& ripple::PeerFinder::Fixed::when ( ) const

Returns the time after which we shoud allow a connection attempt.

Definition at line 40 of file Fixed.h.

◆ failure()

void ripple::PeerFinder::Fixed::failure ( clock_type::time_point const &  now)

Updates metadata to reflect a failed connection.

Definition at line 47 of file Fixed.h.

◆ success()

void ripple::PeerFinder::Fixed::success ( clock_type::time_point const &  now)

Updates metadata to reflect a successful connection.

Definition at line 57 of file Fixed.h.

Member Data Documentation

◆ m_when

clock_type::time_point ripple::PeerFinder::Fixed::m_when
private

Definition at line 64 of file Fixed.h.

◆ m_failures

std::size_t ripple::PeerFinder::Fixed::m_failures
private

Definition at line 65 of file Fixed.h.