libktorrent
2.2.0
|
#include <findnodereq.h>
Public Types | |
typedef QSharedPointer< FindNodeReq > | Ptr |
![]() | |
typedef QSharedPointer< RPCMsg > | Ptr |
Public Member Functions | |
FindNodeReq (const Key &id, const Key &target) | |
void | apply (DHT *dh_table) override |
void | encode (QByteArray &arr) const override |
const Key & | getTarget () const |
void | parse (bt::BDictNode *dict) override |
void | print () override |
bool | wants (int ip_version) const |
![]() | |
RPCMsg (const QByteArray &mtid, Method m, Type type, const Key &id) | |
const net::Address & | getDestination () const |
Get the origin. | |
const Key & | getID () const |
Get the id of the sender. | |
Method | getMethod () const |
Get the message it's method. | |
const QByteArray & | getMTID () const |
Get the MTID. | |
const net::Address & | getOrigin () const |
Get the origin. | |
Type | getType () const |
Get the type of the message. | |
void | setDestination (const net::Address &o) |
Set the origin (i.e. where the message came from) | |
void | setMTID (const QByteArray &m) |
Set the MTID. | |
void | setOrigin (const net::Address &o) |
Set the origin (i.e. where the message came from) | |
Additional Inherited Members | |
![]() | |
Key | id |
Method | method |
QByteArray | mtid |
net::Address | origin |
Type | type |
FindNode request in the DHT protocol
Definition at line 51 of file findnodereq.h.
|
overridevirtual |
When this message arrives this function will be called upon the DHT. The message should then call the appropriate DHT function (double dispatch)
dh_table | Pointer to DHT |
Implements dht::RPCMsg.
|
overridevirtual |
|
overridevirtual |
Parse the message
dict | Data dictionary |
bt::Error | when something goes wrong |
Reimplemented from dht::RPCMsg.
|
overridevirtual |
Print the message for debugging purposes.
Implements dht::RPCMsg.