|
C++ Distributed Hash Table
|
Public Member Functions | |
| size_t | size (sa_family_t family) const |
| size_t | size () const |
| Sp< Node > | getNode (const InfoHash &id, sa_family_t family) |
| Sp< Node > | getNode (const InfoHash &id, const SockAddr &, time_point now, bool confirmed, bool client=false) |
| std::vector< Sp< Node > > | getCachedNodes (const InfoHash &id, sa_family_t sa_f, size_t count) const |
| void | clearBadNodes (sa_family_t family=0) |
| NodeCache (std::mt19937_64 &r) | |
Definition at line 28 of file node_cache.h.
| void dht::NodeCache::clearBadNodes | ( | sa_family_t | family = 0 | ) |
Reset the connectivity state of every node, Giving them a new chance if they where expired. To use in case of connectivity change etc.
1.8.14