#include <findnodersp.h>
|
| FindNodeRsp (const QByteArray &mtid, const Key &id) |
|
void | apply (DHT *dh_table) override |
|
void | encode (QByteArray &arr) const override |
|
void | parse (bt::BDictNode *dict) override |
|
void | print () override |
|
| 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)
|
|
void | addNode (const QByteArray &a) |
| Add a single node to the nodes or nodes2 parameter depending on it's size.
|
|
const QByteArray & | getNodes () const |
| Get the nodes parameter.
|
|
const QByteArray & | getNodes6 () const |
| Get the nodes6 parameter.
|
|
|
Key | id |
|
Method | method |
|
QByteArray | mtid |
|
net::Address | origin |
|
Type | type |
|
QByteArray | nodes |
|
QByteArray | nodes6 |
|
FindNode response message for DHT
Definition at line 35 of file findnodersp.h.
◆ apply()
void dht::FindNodeRsp::apply |
( |
DHT * |
dh_table | ) |
|
|
overridevirtual |
When this message arrives this function will be called upon the DHT. The message should then call the appropriate DHT function (double dispatch)
- Parameters
-
Implements dht::RPCMsg.
◆ encode()
void dht::FindNodeRsp::encode |
( |
QByteArray & |
arr | ) |
const |
|
overridevirtual |
BEncode the message.
- Parameters
-
Implements dht::RPCMsg.
◆ parse()
Parse the message
- Parameters
-
- Exceptions
-
Reimplemented from dht::RPCMsg.
◆ print()
void dht::FindNodeRsp::print |
( |
| ) |
|
|
overridevirtual |
Print the message for debugging purposes.
Implements dht::RPCMsg.
The documentation for this class was generated from the following file: