kget
dht::AnnounceTask Class Reference
#include <announcetask.h>
Inheritance diagram for dht::AnnounceTask:

Detailed Description
Definition at line 45 of file announcetask.h.
Public Member Functions | |
| AnnounceTask (Database *db, RPCServer *rpc, Node *node, const dht::Key &info_hash, bt::Uint16 port) | |
| virtual void | callFinished (RPCCall *c, MsgBase *rsp) |
| virtual void | callTimeout (RPCCall *c) |
| bool | takeItem (DBItem &item) |
| virtual void | update () |
| virtual | ~AnnounceTask () |
Constructor & Destructor Documentation
| dht::AnnounceTask::AnnounceTask | ( | Database * | db, | |
| RPCServer * | rpc, | |||
| Node * | node, | |||
| const dht::Key & | info_hash, | |||
| bt::Uint16 | port | |||
| ) |
Definition at line 31 of file announcetask.cpp.
| dht::AnnounceTask::~AnnounceTask | ( | ) | [virtual] |
Definition at line 36 of file announcetask.cpp.
Member Function Documentation
A call is finished and a response was received.
- Parameters:
-
c The call rsp The response
Implements dht::Task.
Definition at line 40 of file announcetask.cpp.
| void dht::AnnounceTask::callTimeout | ( | RPCCall * | c | ) | [virtual] |
A call timedout.
- Parameters:
-
c The call
Implements dht::Task.
Definition at line 99 of file announcetask.cpp.
| bool dht::AnnounceTask::takeItem | ( | DBItem & | item | ) |
Take one item from the returned values.
Returns false if there is no item to take.
- Parameters:
-
item The item
- Returns:
- false if no item to take, true else
Definition at line 154 of file announcetask.cpp.
| void dht::AnnounceTask::update | ( | ) | [virtual] |
Will continue the task, this will be called every time we have rpc slots available for this task.
Should be implemented by derived classes.
Implements dht::Task.
Definition at line 104 of file announcetask.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference