![]() |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
#include "rpc/server.h"#include "base58.h"#include "fs.h"#include "init.h"#include "main.h"#include "random.h"#include "sync.h"#include "guiinterface.h"#include "util.h"#include "utilstrencodings.h"#include <boost/bind.hpp>#include <boost/iostreams/concepts.hpp>#include <boost/iostreams/stream.hpp>#include <boost/shared_ptr.hpp>#include <boost/signals2/signal.hpp>#include <boost/thread.hpp>#include <boost/algorithm/string/case_conv.hpp>#include <univalue.h>Go to the source code of this file.
Classes | |
| struct | CRPCSignals |
Functions | |
| void | RPCTypeCheck (const UniValue ¶ms, const std::list< UniValue::VType > &typesExpected, bool fAllowNull) |
| Type-check arguments; throws JSONRPCError if wrong type given. More... | |
| void | RPCTypeCheckObj (const UniValue &o, const std::map< std::string, UniValue::VType > &typesExpected, bool fAllowNull) |
| Check for expected keys/value types in an Object. More... | |
| CAmount | AmountFromValue (const UniValue &value) |
| UniValue | ValueFromAmount (const CAmount &amount) |
| uint256 | ParseHashV (const UniValue &v, std::string strName) |
| Utilities: convert hex-encoded Values (throws error if not hex). More... | |
| uint256 | ParseHashO (const UniValue &o, std::string strKey) |
| std::vector< unsigned char > | ParseHexV (const UniValue &v, std::string strName) |
| std::vector< unsigned char > | ParseHexO (const UniValue &o, std::string strKey) |
| int | ParseInt (const UniValue &o, std::string strKey) |
| bool | ParseBool (const UniValue &o, std::string strKey) |
| UniValue | help (const UniValue ¶ms, bool fHelp) |
| UniValue | stop (const UniValue ¶ms, bool fHelp) |
| bool | StartRPC () |
| void | InterruptRPC () |
| void | StopRPC () |
| bool | IsRPCRunning () |
| void | SetRPCWarmupStatus (const std::string &newStatus) |
| Set the RPC warmup status. More... | |
| void | SetRPCWarmupFinished () |
| bool | RPCIsInWarmup (std::string *outStatus) |
| std::string | JSONRPCExecBatch (const UniValue &vReq) |
| std::string | HelpExampleCli (std::string methodname, std::string args) |
| std::string | HelpExampleRpc (std::string methodname, std::string args) |
| void | RPCSetTimerInterfaceIfUnset (RPCTimerInterface *iface) |
| Set factory function for timers, but only if unset. More... | |
| void | RPCSetTimerInterface (RPCTimerInterface *iface) |
| Set factory function for timers. More... | |
| void | RPCUnsetTimerInterface (RPCTimerInterface *iface) |
| Unset factory function for timers. More... | |
| void | RPCRunLater (const std::string &name, boost::function< void(void)> func, int64_t nSeconds) |
| Run func nSeconds from now. More... | |
Variables | |
| const CRPCTable | tableRPC |
Definition at line 107 of file server.cpp.
Definition at line 231 of file server.cpp.
| std::string HelpExampleCli | ( | std::string | methodname, |
| std::string | args | ||
| ) |
Definition at line 603 of file server.cpp.
| std::string HelpExampleRpc | ( | std::string | methodname, |
| std::string | args | ||
| ) |
Definition at line 607 of file server.cpp.
| void InterruptRPC | ( | ) |
| bool IsRPCRunning | ( | ) |
Definition at line 487 of file server.cpp.
| std::string JSONRPCExecBatch | ( | const UniValue & | vReq | ) |
| bool ParseBool | ( | const UniValue & | o, |
| std::string | strKey | ||
| ) |
Definition at line 140 of file server.cpp.
Utilities: convert hex-encoded Values (throws error if not hex).
Definition at line 127 of file server.cpp.
| std::vector<unsigned char> ParseHexO | ( | const UniValue & | o, |
| std::string | strKey | ||
| ) |
| std::vector<unsigned char> ParseHexV | ( | const UniValue & | v, |
| std::string | strName | ||
| ) |
Definition at line 144 of file server.cpp.
| int ParseInt | ( | const UniValue & | o, |
| std::string | strKey | ||
| ) |
| bool RPCIsInWarmup | ( | std::string * | outStatus | ) |
| void RPCRunLater | ( | const std::string & | name, |
| boost::function< void(void)> | func, | ||
| int64_t | nSeconds | ||
| ) |
Run func nSeconds from now.
Overrides previous timer <name> (if any).
Definition at line 627 of file server.cpp.
| void RPCSetTimerInterface | ( | RPCTimerInterface * | iface | ) |
Set factory function for timers.
Definition at line 618 of file server.cpp.
| void RPCSetTimerInterfaceIfUnset | ( | RPCTimerInterface * | iface | ) |
Set factory function for timers, but only if unset.
Definition at line 613 of file server.cpp.
| void RPCTypeCheck | ( | const UniValue & | params, |
| const std::list< UniValue::VType > & | typesExpected, | ||
| bool | fAllowNull = false |
||
| ) |
Type-check arguments; throws JSONRPCError if wrong type given.
Does not check that the right number of arguments are passed, just that any passed are the correct type. Use like: RPCTypeCheck(params, boost::assign::list_of(str_type)(int_type)(obj_type));
Definition at line 70 of file server.cpp.
| void RPCTypeCheckObj | ( | const UniValue & | o, |
| const std::map< std::string, UniValue::VType > & | typesExpected, | ||
| bool | fAllowNull = false |
||
| ) |
Check for expected keys/value types in an Object.
Use like: RPCTypeCheckObj(object, boost::assign::map_list_of("name", str_type)("value", int_type));
Definition at line 86 of file server.cpp.
| void RPCUnsetTimerInterface | ( | RPCTimerInterface * | iface | ) |
Unset factory function for timers.
Definition at line 622 of file server.cpp.
| void SetRPCWarmupFinished | ( | ) |
Definition at line 496 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 491 of file server.cpp.
| bool StartRPC | ( | ) |
| void StopRPC | ( | ) |
| const CRPCTable tableRPC |
Definition at line 636 of file server.cpp.
1.8.17