xrpld
Loading...
Searching...
No Matches
xrpld
peerfinder
detail
Endpoint.cpp
1
#include <xrpld/peerfinder/PeerfinderManager.h>
2
#include <xrpld/peerfinder/detail/Tuning.h>
3
4
#include <xrpl/beast/net/IPEndpoint.h>
5
6
#include <
algorithm
>
7
#include <
cstdint
>
8
#include <
utility
>
9
10
namespace
xrpl::PeerFinder
{
11
12
Endpoint::Endpoint
(
beast::IP::Endpoint
ep,
std::uint32_t
hops
)
13
:
hops
(
std
::min(
hops
,
Tuning
::kMaxHops + 1)),
address
(
std
::move(ep))
14
{
15
}
16
17
}
// namespace xrpl::PeerFinder
algorithm
beast::IP::Endpoint
A version-independent IP address and port combination.
Definition
IPEndpoint.h:17
cstdint
std::uint32_t
std
STL namespace.
xrpl::PeerFinder::Tuning
Heuristically tuned constants.
Definition
src/xrpld/peerfinder/detail/Tuning.h:7
xrpl::PeerFinder
Definition
Livecache_test.cpp:25
xrpl::PeerFinder::Endpoint::hops
std::uint32_t hops
Definition
PeerfinderManager.h:112
xrpl::PeerFinder::Endpoint::Endpoint
Endpoint()=default
xrpl::PeerFinder::Endpoint::address
beast::IP::Endpoint address
Definition
PeerfinderManager.h:113
utility
Generated by
1.16.1