Bitcoin ABC  0.29.2
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
RPCServer Class Reference

Class for registering and managing all RPC calls. More...

#include <server.h>

Collaboration diagram for RPCServer:
[legend]

Public Member Functions

 RPCServer ()
 
 RPCServer (const RPCServer &)=delete
 
RPCServeroperator= (const RPCServer &)=delete
 
UniValue ExecuteCommand (const Config &config, const JSONRPCRequest &request) const
 Attempts to execute an RPC command from the given request. More...
 
void RegisterCommand (std::unique_ptr< RPCCommand > command)
 Register an RPC command. More...
 

Private Attributes

RWCollection< RPCCommandMapcommands
 

Detailed Description

Class for registering and managing all RPC calls.

Definition at line 39 of file server.h.

Constructor & Destructor Documentation

◆ RPCServer() [1/2]

RPCServer::RPCServer ( )
inline

Definition at line 44 of file server.h.

◆ RPCServer() [2/2]

RPCServer::RPCServer ( const RPCServer )
delete

Member Function Documentation

◆ ExecuteCommand()

UniValue RPCServer::ExecuteCommand ( const Config config,
const JSONRPCRequest request 
) const

Attempts to execute an RPC command from the given request.

If no RPC command exists that matches the request, an error is returned.

Definition at line 69 of file server.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

RPCServer& RPCServer::operator= ( const RPCServer )
delete

◆ RegisterCommand()

void RPCServer::RegisterCommand ( std::unique_ptr< RPCCommand command)

Register an RPC command.

Definition at line 98 of file server.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ commands

RWCollection<RPCCommandMap> RPCServer::commands
private

Definition at line 41 of file server.h.


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