Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
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.
 
void RegisterCommand (std::unique_ptr< RPCCommand > command)
 Register an RPC command.
 

Private Attributes

RWCollection< RPCCommandMapcommands
 

Detailed Description

Class for registering and managing all RPC calls.

Definition at line 40 of file server.h.

Constructor & Destructor Documentation

◆ RPCServer() [1/2]

RPCServer::RPCServer ( )
inline

Definition at line 45 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 71 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 100 of file server.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ commands

RWCollection<RPCCommandMap> RPCServer::commands
private

Definition at line 42 of file server.h.


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