![]() |
Bitcoin ABC 0.32.4
P2P Digital Currency
|
Class for registering and managing all RPC calls. More...
#include <server.h>
Public Member Functions | |
| RPCServer () | |
| RPCServer (const RPCServer &)=delete | |
| RPCServer & | operator= (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< RPCCommandMap > | commands |
|
delete |
| 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.
| void RPCServer::RegisterCommand | ( | std::unique_ptr< RPCCommand > | command | ) |
Register an RPC command.
Definition at line 100 of file server.cpp.
|
private |