20 #include <ripple/peerfinder/PeerfinderManager.h>
21 #include <ripple/peerfinder/impl/SlotImp.h>
22 #include <ripple/peerfinder/impl/Tuning.h>
25 namespace PeerFinder {
37 , m_remote_endpoint(remote_endpoint)
38 , m_local_endpoint(local_endpoint)
39 , m_listening_port(unknownPort)
42 , connectivityCheckInProgress(false)
55 , m_remote_endpoint(remote_endpoint)
56 , m_listening_port(unknownPort)
59 , connectivityCheckInProgress(false)
107 auto const result(cache.emplace(ep, hops));
111 if (hops <= result.first->second)
113 result.first->second = hops;
114 cache.touch(result.first);
122 auto const iter(cache.find(ep));
123 if (iter == cache.end())
128 return iter->second <= hops;