rippled
|
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. More... | |
bool | filter (beast::IP::Endpoint const &ep, std::uint32_t hops) |
Returns true if we should not send endpoint to the slot. More... | |
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 100 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 105 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 120 of file SlotImp.cpp.
|
private |
Definition at line 132 of file SlotImp.cpp.
|
private |