libktorrent
2.2.0
|
#include <rpcserver.h>
Public Member Functions | |
RPCServer (DHT *dh_table, Uint16 port, QObject *parent=0) | |
RPCCall * | doCall (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. | |
Class to handle incoming and outgoing RPC messages.
Definition at line 45 of file rpcserver.h.
|
overridevirtual |
Do a RPC call.
msg | The message to send |
Implements dht::RPCServerInterface.
void dht::RPCServer::ping | ( | const dht::Key & | our_id, |
const net::Address & | addr | ||
) |
Ping a node, we don't care about the MTID.
addr | The address |
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.
msg | The message to send |
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.
msg | The message to send |