26 #include <util/constants.h>
27 #include <util/timer.h>
35 class AddressResolver;
71 void response(
const RPCMsg & r);
74 void error(
const ErrMsg & r);
75 void timeout(RPCMsg::Ptr r);
111 void start(
const QString & table,
const QString & key_file,bt::Uint16 port)
override;
113 void addDHTNode(
const QString & host,bt::Uint16 hport)
override;
118 void update()
override;
120 void ownNodeLookupFinished(
Task* t);
121 void expireDatabaseItems();
void portReceived(const QString &ip, bt::Uint16 port) override
QMap< QString, int > getClosestGoodNodes(int maxNodes) override
Key in the distributed hash table.
NodeLookup * refreshBucket(const dht::Key &id, KBucket &bucket)
NodeLookup * findOwnNode()
Do a findNode for our node id.
NodeLookup * findNode(const dht::Key &id)
void start(const QString &table, const QString &key_file, bt::Uint16 port) override
AnnounceTask * announce(const bt::SHA1Hash &info_hash, bt::Uint16 port) override
bool canStartTask() const
See if it is possible to start a task.
void addDHTNode(const QString &host, bt::Uint16 hport) override