libktorrent
2.1.1
|
#include <nodelookup.h>
Public Member Functions | |
NodeLookup (const dht::Key &node_id, RPCServer *rpc, Node *node, QObject *parent) | |
void | callFinished (RPCCall *c, RPCMsg::Ptr rsp) override |
void | callTimeout (RPCCall *c) override |
void | update () override |
![]() | |
Task (RPCServer *rpc, Node *node, QObject *parent) | |
void | addDHTNode (const QString &ip, bt::Uint16 port) |
bool | canDoRequest () const |
See if we can do a request. | |
void | emitDataReady () |
bt::Uint32 | getNumOutstandingRequests () const |
Get the number of outstanding requests. | |
bool | isFinished () const |
Is the task finished. | |
bool | isQueued () const |
void | kill () |
Kills the task. | |
void | onResponse (RPCCall *c, RPCMsg::Ptr rsp) override |
Decrements the outstanding_reqs. | |
void | onTimeout (RPCCall *c) override |
Decrements the outstanding_reqs. | |
bool | rpcCall (RPCMsg::Ptr req) |
void | start () |
void | start (const KClosestNodesSearch &kns, bool queued) |
![]() | |
RPCCallListener (QObject *parent) | |
Additional Inherited Members | |
![]() | |
![]() | |
void | dataReady (Task *t) |
void | finished (Task *t) |
![]() | |
void | onResolverResults (net::AddressResolver *res) |
![]() | |
void | done () |
![]() | |
Node * | node |
dht::KBucketEntrySet | todo |
dht::KBucketEntrySet | visited |
Task to do a node lookup.
Definition at line 54 of file nodelookup.h.
|
overridevirtual |
A call is finished and a response was received.
c | The call |
rsp | The response |
Implements dht::Task.
|
overridevirtual |
|
overridevirtual |
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.