Master Core  v0.0.9 - 49a5c0d97abf09ef2911ddfe8d9551df59f9efd3-dirty
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
rpcclient.cpp File Reference
#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 &params)
 
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...
 

Function Documentation

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:

int CommandLineRPC ( int  argc,
char *  argv[] 
)

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:

template<typename T >
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.

Note
the argument can be removed once bitcoin-cli functionality is removed from bitcoind

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: