35 class KClosestNodesSearch;
38 const bt::Uint32 WANT_IPV4 = 1;
39 const bt::Uint32 WANT_IPV6 = 2;
40 const bt::Uint32 WANT_BOTH = WANT_IPV4 | WANT_IPV6;
50 class Node :
public QObject
98 bt::Uint32 num_entries;
bt::Uint32 getNumEntriesInRoutingTable() const
Get the number of entries in the routing table.
void findKClosestNodes(KClosestNodesSearch &kns, bt::Uint32 want)
Key in the distributed hash table.
void refreshBuckets(DHT *dh_table)
Check if a buckets needs to be refreshed, and refresh if necesarry.
void onTimeout(RPCMsg::Ptr msg)
void saveTable(const QString &file)
Save the routing table to a file.
const dht::Key & getOurID() const
Get our own ID.
void received(DHT *dh_table, const RPCMsg &msg)
void loadTable(const QString &file)
Load the routing table from a file.