libktorrent  2.1.1
Signals | Public Member Functions | List of all members
dht::RPCCall Class Reference

#include <rpccall.h>

Inheritance diagram for dht::RPCCall:
Inheritance graph
[legend]

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 ()
 

Detailed Description

Author
Joris Guisson

Definition at line 77 of file rpccall.h.

Member Function Documentation

◆ addListener()

void dht::RPCCall::addListener ( RPCCallListener cl)

Add a listener for this call

Parameters
clThe listener

◆ response()

void dht::RPCCall::response ( RPCMsg::Ptr  rsp)

Called by the server if a response is received.

Parameters
rsp

◆ start()

void dht::RPCCall::start ( )

Called when a queued call gets started. Starts the timeout timer.


The documentation for this class was generated from the following file: