Dash Core  0.12.2.1
P2P Digital Currency
dash-cli.cpp File Reference
#include "chainparamsbase.h"
#include "clientversion.h"
#include "rpc/client.h"
#include "rpc/protocol.h"
#include "util.h"
#include "utilstrencodings.h"
#include <boost/filesystem/operations.hpp>
#include <stdio.h>
#include <event2/event.h>
#include <event2/http.h>
#include <event2/buffer.h>
#include <event2/keyvalq_struct.h>
#include <univalue.h>

Go to the source code of this file.

Classes

class  CConnectionFailed
 
struct  HTTPReply
 

Functions

std::string HelpMessageCli ()
 
static int AppInitRPC (int argc, char *argv[])
 
static void http_request_done (struct evhttp_request *req, void *ctx)
 
UniValue CallRPC (const string &strMethod, const UniValue &params)
 
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 int CONTINUE_EXECUTION =-1
 

Function Documentation

◆ AppInitRPC()

static int AppInitRPC ( int  argc,
char *  argv[] 
)
static

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

Referenced by main().

◆ CallRPC()

UniValue CallRPC ( const string &  strMethod,
const UniValue params 
)

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

Referenced by CommandLineRPC().

◆ CommandLineRPC()

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

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

Referenced by main().

◆ HelpMessageCli()

std::string HelpMessageCli ( )

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

Referenced by AppInitRPC().

◆ http_request_done()

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

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

Referenced by CallRPC().

◆ main()

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

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

Variable Documentation

◆ CONTINUE_EXECUTION

const int CONTINUE_EXECUTION =-1
static

Definition at line 28 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 27 of file dash-cli.cpp.

Referenced by CallRPC(), and HelpMessageCli().

◆ DEFAULT_RPCCONNECT

const char DEFAULT_RPCCONNECT[] = "127.0.0.1"
static

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

Referenced by CallRPC(), and HelpMessageCli().