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

Receives handouts for making automatic connections. More...

#include <Handouts.h>

Collaboration diagram for xrpl::peer_finder::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 257 of file Handouts.h.

Member Typedef Documentation

◆ Squelches

◆ list_type

Constructor & Destructor Documentation

◆ ConnectHandouts()

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

Definition at line 311 of file Handouts.h.

Member Function Documentation

◆ tryInsert() [1/2]

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

Definition at line 319 of file Handouts.h.

◆ empty()

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

Definition at line 280 of file Handouts.h.

◆ full()

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

Definition at line 286 of file Handouts.h.

◆ tryInsert() [2/2]

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

Definition at line 292 of file Handouts.h.

◆ list() [1/2]

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

Definition at line 298 of file Handouts.h.

◆ list() [2/2]

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

Definition at line 304 of file Handouts.h.

Member Data Documentation

◆ needed_

std::size_t xrpl::peer_finder::ConnectHandouts::needed_
private

Definition at line 267 of file Handouts.h.

◆ squelches_

Squelches& xrpl::peer_finder::ConnectHandouts::squelches_
private

Definition at line 268 of file Handouts.h.

◆ list_

list_type xrpl::peer_finder::ConnectHandouts::list_
private

Definition at line 269 of file Handouts.h.