kget
dht::DHTBase Class Reference
#include <dhtbase.h>
Inheritance diagram for dht::DHTBase:

Detailed Description
Interface for DHT class, this is to keep other things separate from the inner workings of the DHT.
Definition at line 52 of file dhtbase.h.
Signals | |
| void | started () |
| void | stopped () |
Public Member Functions | |
| virtual void | addDHTNode (const QString &host, bt::Uint16 hport)=0 |
| virtual AnnounceTask * | announce (const bt::SHA1Hash &info_hash, bt::Uint16 port)=0 |
| DHTBase () | |
| virtual QMap< QString, int > | getClosestGoodNodes (int maxNodes)=0 |
| bt::Uint16 | getPort () const |
| const dht::Stats & | getStats () const |
| bool | isRunning () const |
| virtual void | portReceived (const QString &ip, bt::Uint16 port)=0 |
| virtual void | start (const QString &table, const QString &key_file, bt::Uint16 port)=0 |
| virtual void | stop ()=0 |
| virtual void | update ()=0 |
| virtual | ~DHTBase () |
Protected Attributes | |
| bt::Uint16 | port |
| bool | running |
| dht::Stats | stats |
Constructor & Destructor Documentation
| dht::DHTBase::DHTBase | ( | ) |
Definition at line 25 of file dhtbase.cpp.
| dht::DHTBase::~DHTBase | ( | ) | [virtual] |
Definition at line 32 of file dhtbase.cpp.
Member Function Documentation
| virtual void dht::DHTBase::addDHTNode | ( | const QString & | host, | |
| bt::Uint16 | hport | |||
| ) | [pure virtual] |
| virtual AnnounceTask* dht::DHTBase::announce | ( | const bt::SHA1Hash & | info_hash, | |
| bt::Uint16 | port | |||
| ) | [pure virtual] |
| bt::Uint16 dht::DHTBase::getPort | ( | ) | const [inline] |
| const dht::Stats& dht::DHTBase::getStats | ( | ) | const [inline] |
| bool dht::DHTBase::isRunning | ( | ) | const [inline] |
| virtual void dht::DHTBase::portReceived | ( | const QString & | ip, | |
| bt::Uint16 | port | |||
| ) | [pure virtual] |
| virtual void dht::DHTBase::start | ( | const QString & | table, | |
| const QString & | key_file, | |||
| bt::Uint16 | port | |||
| ) | [pure virtual] |
| void dht::DHTBase::started | ( | ) | [signal] |
| void dht::DHTBase::stopped | ( | ) | [signal] |
| virtual void dht::DHTBase::update | ( | ) | [pure virtual] |
Update the DHT.
Member Data Documentation
bt::Uint16 dht::DHTBase::port [protected] |
bool dht::DHTBase::running [protected] |
dht::Stats dht::DHTBase::stats [protected] |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference