Bitcoin ABC  0.22.15
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>

Inheritance diagram for RPCServer:
[legend]
Collaboration diagram for RPCServer:
[legend]

Public Member Functions

 RPCServer ()
 
UniValue ExecuteCommand (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 41 of file server.h.

Constructor & Destructor Documentation

◆ RPCServer()

RPCServer::RPCServer ( )
inline

Definition at line 46 of file server.h.

Here is the call graph for this function:

Member Function Documentation

◆ ExecuteCommand()

UniValue RPCServer::ExecuteCommand ( 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 66 of file server.cpp.

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

◆ RegisterCommand()

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

Register an RPC command.

Definition at line 95 of file server.cpp.

Member Data Documentation

◆ commands

RWCollection<RPCCommandMap> RPCServer::commands
private

Definition at line 43 of file server.h.


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