kget
dht::AnnounceReq Class Reference
#include <rpcmsg.h>
Inheritance diagram for dht::AnnounceReq:

Detailed Description
Definition at line 187 of file rpcmsg.h.
Public Member Functions | |
| AnnounceReq (const Key &id, const Key &info_hash, bt::Uint16 port, const Key &token) | |
| virtual void | apply (DHT *dh_table) |
| virtual void | encode (QByteArray &arr) |
| bt::Uint16 | getPort () const |
| const Key & | getToken () const |
| virtual void | print () |
| virtual | ~AnnounceReq () |
Constructor & Destructor Documentation
| dht::AnnounceReq::AnnounceReq | ( | const Key & | id, | |
| const Key & | info_hash, | |||
| bt::Uint16 | port, | |||
| const Key & | token | |||
| ) |
Definition at line 417 of file rpcmsg.cpp.
| dht::AnnounceReq::~AnnounceReq | ( | ) | [virtual] |
Definition at line 423 of file rpcmsg.cpp.
Member Function Documentation
| void dht::AnnounceReq::apply | ( | DHT * | dh_table | ) | [virtual] |
When this message arrives this function will be called upon the DHT.
The message should then call the appropriate DHT function (double dispatch)
- Parameters:
-
dh_table Pointer to DHT
Reimplemented from dht::GetPeersReq.
Definition at line 425 of file rpcmsg.cpp.
| void dht::AnnounceReq::encode | ( | QByteArray & | arr | ) | [virtual] |
BEncode the message.
- Parameters:
-
arr Data array
Reimplemented from dht::GetPeersReq.
Definition at line 437 of file rpcmsg.cpp.
| bt::Uint16 dht::AnnounceReq::getPort | ( | ) | const [inline] |
| void dht::AnnounceReq::print | ( | ) | [virtual] |
Print the message for debugging purposes.
Reimplemented from dht::GetPeersReq.
Definition at line 430 of file rpcmsg.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference