Anoncoin  0.9.4
P2P Digital Currency
Classes | Functions | Variables
rpcserver.cpp File Reference
#include "rpcserver.h"
#include "base58.h"
#include "init.h"
#include "main.h"
#include "ui_interface.h"
#include "util.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 rpcserver.cpp:

Go to the source code of this file.

Classes

class  AcceptedConnection
 
class  AcceptedConnectionImpl< Protocol >
 
class  JSONRequest
 

Functions

void RPCTypeCheck (const Array &params, const list< Value_type > &typesExpected, bool fAllowNull)
 
void RPCTypeCheck (const Object &o, const map< string, Value_type > &typesExpected, bool fAllowNull)
 
int64_t AmountFromValue (const Value &value)
 
Value ValueFromAmount (int64_t amount)
 
std::string HexBits (unsigned int nBits)
 
uint256 ParseHashV (const Value &v, string strName)
 
uint256 ParseHashO (const Object &o, string strKey)
 
vector< unsigned char > ParseHexV (const Value &v, string strName)
 
vector< unsigned char > ParseHexO (const Object &o, string strKey)
 
Value help (const Array &params, bool fHelp)
 
Value stop (const Array &params, bool fHelp)
 
bool HTTPAuthorized (map< string, string > &mapHeaders)
 
void ErrorReply (std::ostream &stream, const Object &objError, const Value &id)
 
bool ClientAllowed (const boost::asio::ip::address &address)
 
void ServiceConnection (AcceptedConnection *conn)
 
void StartRPCThreads ()
 
void StartDummyRPCThread ()
 
void StopRPCThreads ()
 
void RPCRunHandler (const boost::system::error_code &err, boost::function< void(void)> func)
 
void RPCRunLater (const std::string &name, boost::function< void(void)> func, int64_t nSeconds)
 
std::string HelpExampleCli (string methodname, string args)
 
std::string HelpExampleRpc (string methodname, string args)
 

Variables

const CRPCTable tableRPC
 

Function Documentation

int64_t AmountFromValue ( const Value &  value)

Definition at line 89 of file rpcserver.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool ClientAllowed ( const boost::asio::ip::address &  address)

Definition at line 371 of file rpcserver.cpp.

Here is the call graph for this function:

void ErrorReply ( std::ostream &  stream,
const Object &  objError,
const Value &  id 
)

Definition at line 360 of file rpcserver.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Value help ( const Array &  params,
bool  fHelp 
)

Definition at line 190 of file rpcserver.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string HelpExampleCli ( string  methodname,
string  args 
)

Definition at line 899 of file rpcserver.cpp.

std::string HelpExampleRpc ( string  methodname,
string  args 
)

Definition at line 903 of file rpcserver.cpp.

std::string HexBits ( unsigned int  nBits)

Definition at line 105 of file rpcserver.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool HTTPAuthorized ( map< string, string > &  mapHeaders)

Definition at line 350 of file rpcserver.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

uint256 ParseHashO ( const Object &  o,
string  strKey 
)

Definition at line 126 of file rpcserver.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

uint256 ParseHashV ( const Value &  v,
string  strName 
)

Definition at line 115 of file rpcserver.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

vector<unsigned char> ParseHexO ( const Object &  o,
string  strKey 
)

Definition at line 139 of file rpcserver.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

vector<unsigned char> ParseHexV ( const Value &  v,
string  strName 
)

Definition at line 130 of file rpcserver.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void RPCRunHandler ( const boost::system::error_code &  err,
boost::function< void(void)>  func 
)

Definition at line 676 of file rpcserver.cpp.

Here is the caller graph for this function:

void RPCRunLater ( const std::string &  name,
boost::function< void(void)>  func,
int64_t  nSeconds 
)

Definition at line 682 of file rpcserver.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void RPCTypeCheck ( const Array &  params,
const list< Value_type > &  typesExpected,
bool  fAllowNull 
)

Definition at line 49 of file rpcserver.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void RPCTypeCheck ( const Object &  o,
const map< string, Value_type > &  typesExpected,
bool  fAllowNull 
)

Definition at line 70 of file rpcserver.cpp.

Here is the call graph for this function:

void ServiceConnection ( AcceptedConnection conn)

Definition at line 770 of file rpcserver.cpp.

Here is the call graph for this function:

void StartDummyRPCThread ( )

Definition at line 631 of file rpcserver.cpp.

Here is the caller graph for this function:

void StartRPCThreads ( )

Definition at line 511 of file rpcserver.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Value stop ( const Array &  params,
bool  fHelp 
)

Definition at line 210 of file rpcserver.cpp.

Here is the call graph for this function:

void StopRPCThreads ( )

Definition at line 644 of file rpcserver.cpp.

Here is the caller graph for this function:

Value ValueFromAmount ( int64_t  amount)

Definition at line 100 of file rpcserver.cpp.

Here is the caller graph for this function:

Variable Documentation

const CRPCTable tableRPC

Definition at line 908 of file rpcserver.cpp.