![]() |
Master Core
v0.0.9 - 49a5c0d97abf09ef2911ddfe8d9551df59f9efd3-dirty
|
#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"
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().
Definition at line 210 of file rpcclient.cpp.
References CallRPC(), error(), IsSwitchChar(), PrintExceptionContinue(), RPC_MISC_ERROR, and RPCConvertValues().
Referenced by AppInit(), and main().
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().
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().