libktorrent
2.2.0
|
#include <rpccall.h>
Signals | |
void | response (RPCCall *c, RPCMsg::Ptr rsp) |
void | timeout (RPCCall *c) |
Public Member Functions | |
RPCCall (RPCMsg::Ptr msg, bool queued) | |
void | addListener (RPCCallListener *cl) |
Method | getMsgMethod () const |
Get the message type. | |
RPCMsg::Ptr | getRequest () |
Get the request sent. | |
const RPCMsg::Ptr | getRequest () const |
Get the request sent. | |
void | response (RPCMsg::Ptr rsp) |
void | start () |
void dht::RPCCall::addListener | ( | RPCCallListener * | cl | ) |
Add a listener for this call
cl | The listener |
void dht::RPCCall::response | ( | RPCMsg::Ptr | rsp | ) |
Called by the server if a response is received.
rsp |
void dht::RPCCall::start | ( | ) |
Called when a queued call gets started. Starts the timeout timer.