| 
    rippled
    
   | 
 
A static or dynamic source of peer addresses. More...
#include <Source.h>

Classes | |
| struct | Results | 
| The results of a fetch.  More... | |
Public Member Functions | |
| virtual | ~Source () | 
| virtual std::string const & | name ()=0 | 
| virtual void | cancel () | 
| virtual void | fetch (Results &results, beast::Journal journal)=0 | 
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.
      
  | 
  pure virtual | 
Implemented in ripple::PeerFinder::SourceStringsImp.
      
  | 
  pure virtual | 
Implemented in ripple::PeerFinder::SourceStringsImp.