libktorrent  2.2.0
Public Slots | Public Member Functions | List of all members
dht::RPCCallListener Class Referenceabstract

#include <rpccall.h>

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

Public Slots

virtual void onResponse (RPCCall *c, RPCMsg::Ptr rsp)=0
 
virtual void onTimeout (RPCCall *c)=0
 

Public Member Functions

 RPCCallListener (QObject *parent)
 

Detailed Description

Class which objects should derive from, if they want to know the result of a call.

Definition at line 52 of file rpccall.h.

Member Function Documentation

◆ onResponse

virtual void dht::RPCCallListener::onResponse ( RPCCall c,
RPCMsg::Ptr  rsp 
)
pure virtualslot

A response was received.

Parameters
cThe call
rspThe response

Implemented in dht::Task.

◆ onTimeout

virtual void dht::RPCCallListener::onTimeout ( RPCCall c)
pure virtualslot

The call has timed out.

Parameters
cThe call

Implemented in dht::Task.


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