Fabcoin Core
0.16.2
P2P Digital Currency
|
Fabcoin RPC command dispatcher. More...
#include <server.h>
Public Member Functions | |
CRPCTable () | |
const CRPCCommand * | operator[] (const std::string &name) const |
std::string | help (const std::string &name, const JSONRPCRequest &helpreq) const |
Note: This interface may still be subject to change. More... | |
UniValue | execute (const JSONRPCRequest &request) const |
Execute a method. More... | |
std::vector< std::string > | listCommands () const |
Returns a list of registered commands. More... | |
bool | appendCommand (const std::string &name, const CRPCCommand *pcmd) |
Appends a CRPCCommand to the dispatch table. More... | |
Private Attributes | |
std::map< std::string, const CRPCCommand * > | mapCommands |
CRPCTable::CRPCTable | ( | ) |
Definition at line 278 of file server.cpp.
bool CRPCTable::appendCommand | ( | const std::string & | name, |
const CRPCCommand * | pcmd | ||
) |
Appends a CRPCCommand to the dispatch table.
Returns false if RPC server is already running (dump concurrency protection). Commands cannot be overwritten (returns false).
Definition at line 298 of file server.cpp.
UniValue CRPCTable::execute | ( | const JSONRPCRequest & | request | ) | const |
Execute a method.
request | The JSONRPCRequest to execute |
an | exception (UniValue) when an error happens. |
Definition at line 512 of file server.cpp.
std::string CRPCTable::help | ( | const std::string & | name, |
const JSONRPCRequest & | helpreq | ||
) | const |
Note: This interface may still be subject to change.
Definition at line 161 of file server.cpp.
std::vector< std::string > CRPCTable::listCommands | ( | ) | const |
Returns a list of registered commands.
Definition at line 543 of file server.cpp.
const CRPCCommand * CRPCTable::operator[] | ( | const std::string & | name | ) | const |
Definition at line 290 of file server.cpp.
|
private |