1#include <xrpld/peerfinder/PeerfinderManager.h> 
    2#include <xrpld/peerfinder/detail/Tuning.h> 
    8    : maxPeers(Tuning::defaultMaxPeers)
 
    9    , outPeers(calcOutPeers())
 
 
   73    bool validationPublicKey,
 
  115    if (validationPublicKey)
 
 
std::size_t PEERS_OUT_MAX
 
bool operator==(Endpoint const &a, Endpoint const &b)
 
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
 
PeerFinder configuration settings.
 
void onWrite(beast::PropertyStream::Map &map)
Write the configuration into a property stream.
 
Config()
Create a configuration with default values.
 
bool autoConnect
true if we want to establish connections automatically
 
int ipLimit
Limit how many incoming connections we allow per IP.
 
std::size_t inPeers
The number of automatic inbound connections to maintain.
 
void applyTuning()
Adjusts the values so they follow the business rules.
 
static Config makeConfig(ripple::Config const &config, std::uint16_t port, bool validationPublicKey, int ipLimit)
Make PeerFinder::Config from configuration parameters.
 
std::size_t maxPeers
The largest number of public peer slots to allow.
 
std::string features
The set of features we advertise.
 
bool wantIncoming
true if we want to accept incoming connections.
 
std::size_t outPeers
The number of automatic outbound connections to maintain.
 
std::size_t calcOutPeers() const
Returns a suitable value for outPeers according to the rules.
 
std::uint16_t listeningPort
The listening port number.
 
bool peerPrivate
true if we want our IP address kept private.