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

#include <rpcserver.h>

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

Public Member Functions

 RPCServer (DHT *dh_table, Uint16 port, QObject *parent=0)
 
RPCCalldoCall (RPCMsg::Ptr msg) override
 
Uint32 getNumActiveRPCCalls () const
 Get the number of active calls.
 
void ping (const dht::Key &our_id, const net::Address &addr)
 
void sendMsg (const RPCMsg &msg)
 
void sendMsg (RPCMsg::Ptr msg)
 
void start ()
 Start the server.
 
void stop ()
 Stop the server.
 

Detailed Description

Author
Joris Guisson

Class to handle incoming and outgoing RPC messages.

Definition at line 45 of file rpcserver.h.

Member Function Documentation

◆ doCall()

RPCCall* dht::RPCServer::doCall ( RPCMsg::Ptr  msg)
overridevirtual

Do a RPC call.

Parameters
msgThe message to send
Returns
The call object

Implements dht::RPCServerInterface.

◆ ping()

void dht::RPCServer::ping ( const dht::Key our_id,
const net::Address addr 
)

Ping a node, we don't care about the MTID.

Parameters
addrThe address

◆ sendMsg() [1/2]

void dht::RPCServer::sendMsg ( const RPCMsg msg)

Send a message, this only sends the message, it does not keep any call information. This should be used for replies.

Parameters
msgThe message to send

◆ sendMsg() [2/2]

void dht::RPCServer::sendMsg ( RPCMsg::Ptr  msg)

Send a message, this only sends the message, it does not keep any call information. This should be used for replies.

Parameters
msgThe message to send

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