Bitcoin
Classes | Namespaces | Typedefs | Functions | Variables
server.h File Reference
#include <amount.h>
#include <rpc/request.h>
#include <uint256.h>
#include <list>
#include <map>
#include <stdint.h>
#include <string>
#include <functional>
#include <univalue.h>

Go to the source code of this file.

Classes

class  RPCTimerBase
 
class  RPCTimerInterface
 
class  CRPCCommand
 
class  CRPCTable
 

Namespaces

 RPCServer
 

Typedefs

typedef UniValue(* rpcfn_type) (const JSONRPCRequest &jsonRequest)
 

Functions

void RPCServer::OnStarted (std::function< void()> slot)
 
void RPCServer::OnStopped (std::function< void()> slot)
 
bool IsRPCRunning ()
 
void SetRPCWarmupStatus (const std::string &newStatus)
 
void SetRPCWarmupFinished ()
 
bool RPCIsInWarmup (std::string *outStatus)
 
void RPCSetTimerInterface (RPCTimerInterface *iface)
 
void RPCSetTimerInterfaceIfUnset (RPCTimerInterface *iface)
 
void RPCUnsetTimerInterface (RPCTimerInterface *iface)
 
void RPCRunLater (const std::string &name, std::function< void()> func, int64_t nSeconds)
 
bool IsDeprecatedRPCEnabled (const std::string &method)
 
void StartRPC ()
 
void InterruptRPC ()
 
void StopRPC ()
 
std::string JSONRPCExecBatch (const JSONRPCRequest &jreq, const UniValue &vReq)
 
int RPCSerializationFlags ()
 

Variables

static const unsigned int DEFAULT_RPC_SERIALIZE_VERSION = 1
 
CRPCTable tableRPC
 

Typedef Documentation

◆ rpcfn_type

typedef UniValue(* rpcfn_type) (const JSONRPCRequest &jsonRequest)

Function Documentation

◆ InterruptRPC()

void InterruptRPC ( )

◆ IsDeprecatedRPCEnabled()

bool IsDeprecatedRPCEnabled ( const std::string &  method)

◆ IsRPCRunning()

bool IsRPCRunning ( )

Query whether RPC is running

◆ JSONRPCExecBatch()

std::string JSONRPCExecBatch ( const JSONRPCRequest jreq,
const UniValue vReq 
)

◆ RPCIsInWarmup()

bool RPCIsInWarmup ( std::string *  outStatus)

◆ RPCRunLater()

void RPCRunLater ( const std::string &  name,
std::function< void()>  func,
int64_t  nSeconds 
)

Run func nSeconds from now. Overrides previous timer <name> (if any).

◆ RPCSerializationFlags()

int RPCSerializationFlags ( )

◆ RPCSetTimerInterface()

void RPCSetTimerInterface ( RPCTimerInterface iface)

Set the factory function for timers

◆ RPCSetTimerInterfaceIfUnset()

void RPCSetTimerInterfaceIfUnset ( RPCTimerInterface iface)

Set the factory function for timer, but only, if unset

◆ RPCUnsetTimerInterface()

void RPCUnsetTimerInterface ( RPCTimerInterface iface)

Unset factory function for timers

◆ SetRPCWarmupFinished()

void SetRPCWarmupFinished ( )

◆ SetRPCWarmupStatus()

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.

◆ StartRPC()

void StartRPC ( )

◆ StopRPC()

void StopRPC ( )

Variable Documentation

◆ DEFAULT_RPC_SERIALIZE_VERSION

const unsigned int DEFAULT_RPC_SERIALIZE_VERSION = 1
static

◆ tableRPC

CRPCTable tableRPC