rippled
Namespaces | Classes | Typedefs | Enumerations | Functions
ripple::PeerFinder Namespace Reference

Namespaces

 detail
 
 Sim
 
 Tuning
 Heuristically tuned constants.
 

Classes

class  Bootcache
 Stores IP addresses useful for gaining initial connections. More...
 
class  Checker
 Tests remote listening sockets to make sure they are connectible. More...
 
struct  Config
 PeerFinder configuration settings. More...
 
class  ConnectHandouts
 Receives handouts for making automatic connections. More...
 
class  Counts
 Manages the count of available connections for the various slots. More...
 
struct  Endpoint
 Describes a connectible peer address along with some metadata. More...
 
class  Fixed
 Metadata for a Fixed slot. More...
 
class  Livecache
 The Livecache holds the short-lived relayed Endpoint messages. More...
 
class  Livecache_test
 
class  Logic
 The Logic for maintaining the list of Slot addresses. More...
 
class  Manager
 Maintains a set of IP addresses used for getting into the network. More...
 
class  ManagerImp
 
class  PeerFinder_test
 
class  RedirectHandouts
 Receives handouts for redirecting a connection. More...
 
struct  Reporting
 Severity levels for test reporting. More...
 
class  Slot
 Properties and state associated with a peer to peer overlay connection. More...
 
class  SlotHandouts
 Receives endpoints for a slot during periodic handouts. More...
 
class  SlotImp
 
class  Source
 A static or dynamic source of peer addresses. More...
 
class  SourceStrings
 Provides addresses from a static set of strings. More...
 
class  SourceStringsImp
 
class  Store
 Abstract persistence for PeerFinder data. More...
 
class  StoreSqdb
 Database persistence for PeerFinder using SQLite. More...
 

Typedefs

using clock_type = beast::abstract_clock< std::chrono::steady_clock >
 
using IPAddresses = std::vector< beast::IP::Endpoint >
 Represents a set of addresses. More...
 
using Endpoints = std::vector< Endpoint >
 A set of Endpoint used for connecting. More...
 

Enumerations

enum  Result { Result::duplicate, Result::full, Result::success }
 Possible results from activating a slot. More...
 

Functions

template<class TargetFwdIter , class SeqFwdIter >
void handout (TargetFwdIter first, TargetFwdIter last, SeqFwdIter seq_first, SeqFwdIter seq_last)
 Distributes objects to targets according to business rules. More...
 
std::unique_ptr< Managermake_Manager (boost::asio::io_service &io_service, clock_type &clock, beast::Journal journal, BasicConfig const &config, beast::insight::Collector::ptr const &collector)
 Create a new Manager. More...
 
bool operator< (Endpoint const &lhs, Endpoint const &rhs)
 
bool operator== (Endpoint const &a, Endpoint const &b)
 
 BEAST_DEFINE_TESTSUITE (Livecache, peerfinder, ripple)
 
 BEAST_DEFINE_TESTSUITE (PeerFinder, PeerFinder, ripple)
 

Typedef Documentation

◆ clock_type

Definition at line 32 of file PeerfinderManager.h.

◆ IPAddresses

Represents a set of addresses.

Definition at line 35 of file PeerfinderManager.h.

◆ Endpoints

A set of Endpoint used for connecting.

Definition at line 130 of file PeerfinderManager.h.

Enumeration Type Documentation

◆ Result

Possible results from activating a slot.

Enumerator
duplicate 
full 
success 

Definition at line 135 of file PeerfinderManager.h.

Function Documentation

◆ handout()

template<class TargetFwdIter , class SeqFwdIter >
void ripple::PeerFinder::handout ( TargetFwdIter  first,
TargetFwdIter  last,
SeqFwdIter  seq_first,
SeqFwdIter  seq_last 
)

Distributes objects to targets according to business rules.

A best effort is made to evenly distribute items in the sequence container list into the target sequence list.

Definition at line 67 of file Handouts.h.

◆ make_Manager()

std::unique_ptr< Manager > ripple::PeerFinder::make_Manager ( boost::asio::io_service &  io_service,
clock_type clock,
beast::Journal  journal,
BasicConfig const &  config,
beast::insight::Collector::ptr const &  collector 
)

Create a new Manager.

Definition at line 273 of file PeerfinderManager.cpp.

◆ operator<()

bool ripple::PeerFinder::operator< ( Endpoint const &  lhs,
Endpoint const &  rhs 
)

Definition at line 124 of file PeerfinderManager.h.

◆ operator==()

bool ripple::PeerFinder::operator== ( Endpoint const &  a,
Endpoint const &  b 
)

Definition at line 33 of file Livecache_test.cpp.

◆ BEAST_DEFINE_TESTSUITE() [1/2]

ripple::PeerFinder::BEAST_DEFINE_TESTSUITE ( Livecache  ,
peerfinder  ,
ripple   
)

◆ BEAST_DEFINE_TESTSUITE() [2/2]

ripple::PeerFinder::BEAST_DEFINE_TESTSUITE ( PeerFinder  ,
PeerFinder  ,
ripple   
)