xrpld
Loading...
Searching...
No Matches
xrpl::PeerFinder::Source Class Referenceabstract

A static or dynamic source of peer addresses. More...

#include <Source.h>

Inheritance diagram for xrpl::PeerFinder::Source:

Classes

struct  Results
 The results of a fetch. More...

Public Member Functions

virtual ~Source ()=default
virtual std::string const & name ()=0
virtual void cancel ()
virtual void fetch (Results &results, beast::Journal journal)=0

Detailed Description

A static or dynamic source of peer addresses.

These are used as fallbacks when we are bootstrapping and don't have a local cache, or when none of our addresses are functioning. Typically sources will represent things like static text in the config file, a separate local file with addresses, or a remote HTTPS URL that can be updated automatically. Another solution is to use a custom DNS server that hands out peer IP addresses when name lookups are performed.

Definition at line 17 of file Source.h.

Constructor & Destructor Documentation

◆ ~Source()

virtual xrpl::PeerFinder::Source::~Source ( )
virtualdefault

Member Function Documentation

◆ name()

virtual std::string const & xrpl::PeerFinder::Source::name ( )
pure virtual

◆ cancel()

virtual void xrpl::PeerFinder::Source::cancel ( )
virtual

Definition at line 36 of file Source.h.

◆ fetch()

virtual void xrpl::PeerFinder::Source::fetch ( Results & results,
beast::Journal journal )
pure virtual