![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
#include "rpcclient.h"#include "rpcprotocol.h"#include "util.h"#include "ui_interface.h"#include "chainparams.h"#include <stdint.h>#include <boost/algorithm/string.hpp>#include <boost/asio.hpp>#include <boost/asio/ssl.hpp>#include <boost/bind.hpp>#include <boost/filesystem.hpp>#include <boost/foreach.hpp>#include <boost/iostreams/concepts.hpp>#include <boost/iostreams/stream.hpp>#include <boost/shared_ptr.hpp>#include "json/json_spirit_writer_template.h"
Include dependency graph for rpcclient.cpp:Go to the source code of this file.
Functions | |
| Object | CallRPC (const string &strMethod, const Array ¶ms) |
| template<typename T > | |
| void | ConvertTo (Value &value, bool fAllowNull=false) |
| Array | RPCConvertValues (const std::string &strMethod, const std::vector< std::string > &strParams) |
| int | CommandLineRPC (int argc, char *argv[]) |
| std::string | HelpMessageCli (bool mainProgram) |
| Show help message for bitcoin-cli. More... | |
| Object CallRPC | ( | const string & | strMethod, |
| const Array & | params | ||
| ) |
Definition at line 31 of file rpcclient.cpp.
References _(), SSLIOStreamDevice< Protocol >::connect(), EncodeBase64(), GetArg(), GetBoolArg(), GetConfigFile(), HTTP_BAD_REQUEST, HTTP_INTERNAL_SERVER_ERROR, HTTP_NOT_FOUND, HTTP_UNAUTHORIZED, HTTPPost(), itostr(), JSONRPCRequest(), mapArgs, MilliSleep(), Params(), ReadHTTPMessage(), ReadHTTPStatus(), and strprintf.
Referenced by CommandLineRPC().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 210 of file rpcclient.cpp.
References CallRPC(), error(), IsSwitchChar(), PrintExceptionContinue(), RPC_MISC_ERROR, and RPCConvertValues().
Referenced by AppInit(), and main().
Here is the call graph for this function:
Here is the caller graph for this function:| void ConvertTo | ( | Value & | value, |
| bool | fAllowNull = false |
||
| ) |
Definition at line 96 of file rpcclient.cpp.
| std::string HelpMessageCli | ( | bool | mainProgram | ) |
Show help message for bitcoin-cli.
The mainProgram argument is used to determine whether to show this message as main program (and include some common options) or as sub-header of another help message.
Definition at line 276 of file rpcclient.cpp.
References _().
Referenced by AppInit(), and AppInitRPC().
Here is the call graph for this function:
Here is the caller graph for this function:| Array RPCConvertValues | ( | const std::string & | strMethod, |
| const std::vector< std::string > & | strParams | ||
| ) |
Definition at line 117 of file rpcclient.cpp.
Referenced by CommandLineRPC(), and RPCExecutor::request().
Here is the caller graph for this function:
1.8.8