|
rippled
|
#include <SlotImp.h>

Public Member Functions | |
| recent_t (clock_type &clock) | |
| void | insert (beast::IP::Endpoint const &ep, std::uint32_t hops) |
| Called for each valid endpoint received for a slot. | |
| bool | filter (beast::IP::Endpoint const &ep, std::uint32_t hops) |
Returns true if we should not send endpoint to the slot. | |
Private Member Functions | |
| void | expire () |
Private Attributes | |
| beast::aged_unordered_map< beast::IP::Endpoint, std::uint32_t > | cache |
Friends | |
| class | SlotImp |
|
explicit |
Definition at line 96 of file SlotImp.cpp.
| void ripple::PeerFinder::SlotImp::recent_t::insert | ( | beast::IP::Endpoint const & | ep, |
| std::uint32_t | hops | ||
| ) |
Called for each valid endpoint received for a slot.
We also insert messages that we send to the slot to prevent sending a slot the same address too frequently.
Definition at line 101 of file SlotImp.cpp.
| bool ripple::PeerFinder::SlotImp::recent_t::filter | ( | beast::IP::Endpoint const & | ep, |
| std::uint32_t | hops | ||
| ) |
Returns true if we should not send endpoint to the slot.
Definition at line 116 of file SlotImp.cpp.
|
private |
Definition at line 128 of file SlotImp.cpp.
|
private |