25 #include <util/constants.h>
66 virtual void start(
const QString & table,
const QString & key_file,bt::Uint16 port) = 0;
109 virtual void addDHTNode(
const QString & host,bt::Uint16 hport) = 0;
virtual void start(const QString &table, const QString &key_file, bt::Uint16 port)=0
virtual QMap< QString, int > getClosestGoodNodes(int maxNodes)=0
virtual void portReceived(const QString &ip, bt::Uint16 port)=0
bt::Uint32 num_peers
number of peers in the routing table
bt::Uint16 getPort() const
Get the DHT port.
const dht::Stats & getStats() const
Get statistics about the DHT.
bt::Uint32 num_tasks
Number of running tasks.
virtual AnnounceTask * announce(const bt::SHA1Hash &info_hash, bt::Uint16 port)=0
virtual void addDHTNode(const QString &host, bt::Uint16 hport)=0