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

Detailed Description
Definition at line 173 of file rpcmsg.h.
Public Member Functions | |
| virtual void | apply (DHT *dh_table) |
| virtual void | encode (QByteArray &arr) |
| const Key & | getInfoHash () const |
| GetPeersReq (const Key &id, const Key &info_hash) | |
| virtual void | print () |
| virtual | ~GetPeersReq () |
Protected Attributes | |
| Key | info_hash |
Constructor & Destructor Documentation
Definition at line 379 of file rpcmsg.cpp.
| dht::GetPeersReq::~GetPeersReq | ( | ) | [virtual] |
Definition at line 383 of file rpcmsg.cpp.
Member Function Documentation
| void dht::GetPeersReq::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
Implements dht::MsgBase.
Reimplemented in dht::AnnounceReq.
Definition at line 386 of file rpcmsg.cpp.
| void dht::GetPeersReq::encode | ( | QByteArray & | arr | ) | [virtual] |
BEncode the message.
- Parameters:
-
arr Data array
Implements dht::MsgBase.
Reimplemented in dht::AnnounceReq.
Definition at line 397 of file rpcmsg.cpp.
| const Key& dht::GetPeersReq::getInfoHash | ( | ) | const [inline] |
| void dht::GetPeersReq::print | ( | ) | [virtual] |
Print the message for debugging purposes.
Implements dht::MsgBase.
Reimplemented in dht::AnnounceReq.
Definition at line 391 of file rpcmsg.cpp.
Member Data Documentation
Key dht::GetPeersReq::info_hash [protected] |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference