xrpld
Loading...
Searching...
No Matches
xrpl::PeerFinder::ConnectHandouts Class Reference

Receives handouts for making automatic connections. More...

#include <Handouts.h>

Collaboration diagram for xrpl::PeerFinder::ConnectHandouts:

Public Types

using Squelches = beast::aged_set<beast::IP::Address>
using list_type = std::vector<beast::IP::Endpoint>

Public Member Functions

template<class = void>
 ConnectHandouts (std::size_t needed, Squelches &squelches)
template<class = void>
bool tryInsert (beast::IP::Endpoint const &endpoint)
bool empty () const
bool full () const
bool tryInsert (Endpoint const &endpoint)
list_typelist ()
list_type const & list () const

Private Attributes

std::size_t needed_
Squelchessquelches_
list_type list_

Detailed Description

Receives handouts for making automatic connections.

Definition at line 246 of file Handouts.h.

Member Typedef Documentation

◆ Squelches

◆ list_type

Constructor & Destructor Documentation

◆ ConnectHandouts()

template<class>
xrpl::PeerFinder::ConnectHandouts::ConnectHandouts ( std::size_t needed,
Squelches & squelches )

Definition at line 300 of file Handouts.h.

Member Function Documentation

◆ tryInsert() [1/2]

template<class>
bool xrpl::PeerFinder::ConnectHandouts::tryInsert ( beast::IP::Endpoint const & endpoint)

Definition at line 308 of file Handouts.h.

◆ empty()

bool xrpl::PeerFinder::ConnectHandouts::empty ( ) const
nodiscard

Definition at line 269 of file Handouts.h.

◆ full()

bool xrpl::PeerFinder::ConnectHandouts::full ( ) const
nodiscard

Definition at line 275 of file Handouts.h.

◆ tryInsert() [2/2]

bool xrpl::PeerFinder::ConnectHandouts::tryInsert ( Endpoint const & endpoint)

Definition at line 281 of file Handouts.h.

◆ list() [1/2]

list_type & xrpl::PeerFinder::ConnectHandouts::list ( )

Definition at line 287 of file Handouts.h.

◆ list() [2/2]

list_type const & xrpl::PeerFinder::ConnectHandouts::list ( ) const
nodiscard

Definition at line 293 of file Handouts.h.

Member Data Documentation

◆ needed_

std::size_t xrpl::PeerFinder::ConnectHandouts::needed_
private

Definition at line 256 of file Handouts.h.

◆ squelches_

Squelches& xrpl::PeerFinder::ConnectHandouts::squelches_
private

Definition at line 257 of file Handouts.h.

◆ list_

list_type xrpl::PeerFinder::ConnectHandouts::list_
private

Definition at line 258 of file Handouts.h.