Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

dash-cli.cpp File Reference
#include <chainparamsbase.h>
#include <clientversion.h>
#include <fs.h>
#include <rpc/client.h>
#include <rpc/protocol.h>
#include <stacktraces.h>
#include <util.h>
#include <utilstrencodings.h>
#include <memory>
#include <stdio.h>
#include <event2/buffer.h>
#include <event2/keyvalq_struct.h>
#include <support/events.h>
#include <univalue.h>
+ Include dependency graph for dash-cli.cpp:

Go to the source code of this file.

Classes

class  CConnectionFailed
 
struct  HTTPReply
 Reply structure for request_done to fill in. More...
 
class  BaseRequestHandler
 Class that handles the conversion from a command-line to a JSON-RPC request, as well as converting back to a JSON object that can be shown as result. More...
 
class  GetinfoRequestHandler
 Process getinfo requests. More...
 
class  DefaultRequestHandler
 Process default single requests. More...
 

Functions

std::string HelpMessageCli ()
 
static int AppInitRPC (int argc, char *argv[])
 
const char * http_errorstring (int code)
 
static void http_request_done (struct evhttp_request *req, void *ctx)
 
static UniValue CallRPC (BaseRequestHandler *rh, const std::string &strMethod, const std::vector< std::string > &args)
 
int CommandLineRPC (int argc, char *argv[])
 
int main (int argc, char *argv[])
 

Variables

static const char DEFAULT_RPCCONNECT [] = "127.0.0.1"
 
static const int DEFAULT_HTTP_CLIENT_TIMEOUT =900
 
static const bool DEFAULT_NAMED =false
 
static const int CONTINUE_EXECUTION =-1
 

Function Documentation

◆ AppInitRPC()

◆ CallRPC()

◆ CommandLineRPC()

◆ HelpMessageCli()

◆ http_errorstring()

const char* http_errorstring ( int  code)

Definition at line 154 of file dash-cli.cpp.

Referenced by CallRPC().

◆ http_request_done()

static void http_request_done ( struct evhttp_request *  req,
void *  ctx 
)
static

Definition at line 176 of file dash-cli.cpp.

References HTTPReply::body, ctx, and HTTPReply::status.

Referenced by CallRPC().

◆ main()

Variable Documentation

◆ CONTINUE_EXECUTION

const int CONTINUE_EXECUTION =-1
static

Definition at line 32 of file dash-cli.cpp.

Referenced by AppInitRPC(), and main().

◆ DEFAULT_HTTP_CLIENT_TIMEOUT

const int DEFAULT_HTTP_CLIENT_TIMEOUT =900
static

Definition at line 30 of file dash-cli.cpp.

Referenced by CallRPC(), and HelpMessageCli().

◆ DEFAULT_NAMED

const bool DEFAULT_NAMED =false
static

Definition at line 31 of file dash-cli.cpp.

Referenced by HelpMessageCli(), and DefaultRequestHandler::PrepareRequest().

◆ DEFAULT_RPCCONNECT

const char DEFAULT_RPCCONNECT[] = "127.0.0.1"
static

Definition at line 29 of file dash-cli.cpp.

Referenced by CallRPC(), and HelpMessageCli().

Released under the MIT license