20 #include <ripple/peerfinder/PeerfinderManager.h>
21 #include <ripple/peerfinder/impl/Tuning.h>
24 namespace PeerFinder {
27 : maxPeers(Tuning::defaultMaxPeers)
28 , outPeers(calcOutPeers())
std::string features
The set of features we advertise.
bool wantIncoming
true if we want to accept incoming connections.
double outPeers
The number of automatic outbound connections to maintain.
int maxPeers
The largest number of public peer slots to allow.
void applyTuning()
Adjusts the values so they follow the business rules.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::uint16_t listeningPort
The listening port number.
double calcOutPeers() const
Returns a suitable value for outPeers according to the rules.
bool autoConnect
true if we want to establish connections automatically
Config()
Create a configuration with default values.
void onWrite(beast::PropertyStream::Map &map)
Write the configuration into a property stream.
int ipLimit
Limit how many incoming connections we allow per IP.