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

Receives handouts for redirecting a connection. More...

#include <Handouts.h>

Collaboration diagram for xrpl::PeerFinder::RedirectHandouts:

Public Member Functions

template<class = void>
 RedirectHandouts (SlotImp::ptr slot)
template<class = void>
bool tryInsert (Endpoint const &ep)
bool full () const
SlotImp::ptr const & slot () const
std::vector< Endpoint > & list ()
std::vector< Endpoint > const & list () const

Private Attributes

SlotImp::ptr slot_
std::vector< Endpointlist_

Detailed Description

Receives handouts for redirecting a connection.

An incoming connection request is redirected when we are full on slots.

Definition at line 78 of file Handouts.h.

Constructor & Destructor Documentation

◆ RedirectHandouts()

template<class>
xrpl::PeerFinder::RedirectHandouts::RedirectHandouts ( SlotImp::ptr slot)
explicit

Definition at line 118 of file Handouts.h.

Member Function Documentation

◆ tryInsert()

template<class>
bool xrpl::PeerFinder::RedirectHandouts::tryInsert ( Endpoint const & ep)

Definition at line 125 of file Handouts.h.

◆ full()

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

Definition at line 89 of file Handouts.h.

◆ slot()

SlotImp::ptr const & xrpl::PeerFinder::RedirectHandouts::slot ( ) const
nodiscard

Definition at line 95 of file Handouts.h.

◆ list() [1/2]

std::vector< Endpoint > & xrpl::PeerFinder::RedirectHandouts::list ( )

Definition at line 101 of file Handouts.h.

◆ list() [2/2]

std::vector< Endpoint > const & xrpl::PeerFinder::RedirectHandouts::list ( ) const
nodiscard

Definition at line 107 of file Handouts.h.

Member Data Documentation

◆ slot_

SlotImp::ptr xrpl::PeerFinder::RedirectHandouts::slot_
private

Definition at line 113 of file Handouts.h.

◆ list_

std::vector<Endpoint> xrpl::PeerFinder::RedirectHandouts::list_
private

Definition at line 114 of file Handouts.h.