Bitcoin Core 28.99.0
P2P Digital Currency
|
#include <rpc/request.h>
#include <rpc/util.h>
#include <functional>
#include <map>
#include <stdint.h>
#include <string>
#include <univalue.h>
Go to the source code of this file.
Classes | |
class | RPCTimerBase |
Opaque base class for timers returned by NewTimerFunc. More... | |
class | RPCTimerInterface |
RPC timer "driver". More... | |
class | CRPCCommand |
class | CRPCTable |
RPC command dispatcher. More... | |
Typedefs | |
typedef RPCHelpMan(* | RpcMethodFnType) () |
Functions | |
bool | IsRPCRunning () |
Query whether RPC is running. More... | |
void | RpcInterruptionPoint () |
Throw JSONRPCError if RPC is not running. More... | |
void | SetRPCWarmupStatus (const std::string &newStatus) |
Set the RPC warmup status. More... | |
void | SetRPCWarmupFinished () |
bool | RPCIsInWarmup (std::string *outStatus) |
void | RPCSetTimerInterface (RPCTimerInterface *iface) |
Set the factory function for timers. More... | |
void | RPCSetTimerInterfaceIfUnset (RPCTimerInterface *iface) |
Set the factory function for timer, but only, if unset. More... | |
void | RPCUnsetTimerInterface (RPCTimerInterface *iface) |
Unset factory function for timers. More... | |
void | RPCRunLater (const std::string &name, std::function< void()> func, int64_t nSeconds) |
Run func nSeconds from now. More... | |
bool | IsDeprecatedRPCEnabled (const std::string &method) |
void | StartRPC () |
void | InterruptRPC () |
void | StopRPC () |
UniValue | JSONRPCExec (const JSONRPCRequest &jreq, bool catch_errors) |
Variables | |
CRPCTable | tableRPC |
typedef RPCHelpMan(* RpcMethodFnType) () |
void InterruptRPC | ( | ) |
bool IsDeprecatedRPCEnabled | ( | const std::string & | method | ) |
Definition at line 341 of file server.cpp.
bool IsRPCRunning | ( | ) |
Query whether RPC is running.
Definition at line 310 of file server.cpp.
UniValue JSONRPCExec | ( | const JSONRPCRequest & | jreq, |
bool | catch_errors | ||
) |
Definition at line 348 of file server.cpp.
void RpcInterruptionPoint | ( | ) |
Throw JSONRPCError if RPC is not running.
Definition at line 315 of file server.cpp.
bool RPCIsInWarmup | ( | std::string * | outStatus | ) |
void RPCRunLater | ( | const std::string & | name, |
std::function< void()> | func, | ||
int64_t | nSeconds | ||
) |
Run func nSeconds from now.
Overrides previous timer <name> (if any).
Definition at line 563 of file server.cpp.
void RPCSetTimerInterface | ( | RPCTimerInterface * | iface | ) |
Set the factory function for timers.
Definition at line 552 of file server.cpp.
void RPCSetTimerInterfaceIfUnset | ( | RPCTimerInterface * | iface | ) |
Set the factory function for timer, but only, if unset.
Definition at line 546 of file server.cpp.
void RPCUnsetTimerInterface | ( | RPCTimerInterface * | iface | ) |
Unset factory function for timers.
Definition at line 557 of file server.cpp.
void SetRPCWarmupFinished | ( | ) |
Definition at line 326 of file server.cpp.
void SetRPCWarmupStatus | ( | const std::string & | newStatus | ) |
Set the RPC warmup status.
When this is done, all RPC calls will error out immediately with RPC_IN_WARMUP.
Definition at line 320 of file server.cpp.
void StartRPC | ( | ) |
void StopRPC | ( | ) |
Definition at line 297 of file server.cpp.
|
extern |
Definition at line 573 of file server.cpp.