xrpld
Loading...
Searching...
No Matches
Endpoint.cpp
1#include <xrpl/beast/net/IPEndpoint.h>
2#include <xrpl/peerfinder/Types.h>
3
4#include <algorithm>
5#include <cstdint>
6#include <utility>
7
8namespace xrpl::peer_finder {
9
11 : hops(std::min(hops, tuning::kMaxHops + 1)), address(std::move(ep))
12{
13}
14
15} // namespace xrpl::peer_finder
A version-independent IP address and port combination.
Definition IPEndpoint.h:24
STL namespace.
beast::ip::Endpoint address