rippled
Loading...
Searching...
No Matches
xrpld
peerfinder
detail
Endpoint.cpp
1
#include <xrpld/peerfinder/PeerfinderManager.h>
2
#include <xrpld/peerfinder/detail/Tuning.h>
3
4
namespace
ripple
{
5
namespace
PeerFinder {
6
7
Endpoint::Endpoint
(
beast::IP::Endpoint
const
& ep,
std::uint32_t
hops_)
8
: hops(
std
::min(hops_, Tuning::maxHops + 1)), address(ep)
9
{
10
}
11
12
}
// namespace PeerFinder
13
}
// namespace ripple
beast::IP::Endpoint
A version-independent IP address and port combination.
Definition
IPEndpoint.h:19
std::uint32_t
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:6
std
STL namespace.
ripple::PeerFinder::Endpoint::Endpoint
Endpoint()=default
Generated by
1.9.8