rippled
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ripple::PeerFinder::Fixed Class Reference

Metadata for a Fixed slot. More...

#include <Fixed.h>

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.
 
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.
 

Private Attributes

clock_type::time_point m_when
 
std::size_t m_failures
 

Detailed Description

Metadata for a Fixed slot.

Definition at line 10 of file Fixed.h.

Constructor & Destructor Documentation

◆ Fixed() [1/2]

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

Definition at line 13 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 21 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 28 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 38 of file Fixed.h.

Member Data Documentation

◆ m_when

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

Definition at line 45 of file Fixed.h.

◆ m_failures

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

Definition at line 46 of file Fixed.h.