Anoncoin  0.9.4
P2P Digital Currency
Functions
rpcprotocol.cpp File Reference
#include "rpcprotocol.h"
#include "clientversion.h"
#include "tinyformat.h"
#include "util.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 rpcprotocol.cpp:

Go to the source code of this file.

Functions

string HTTPPost (const string &strMsg, const map< string, string > &mapRequestHeaders)
 
string HTTPReply (int nStatus, const string &strMsg, bool keepalive)
 
bool ReadHTTPRequestLine (std::basic_istream< char > &stream, int &proto, string &http_method, string &http_uri)
 
int ReadHTTPStatus (std::basic_istream< char > &stream, int &proto)
 
int ReadHTTPHeaders (std::basic_istream< char > &stream, map< string, string > &mapHeadersRet)
 
int ReadHTTPMessage (std::basic_istream< char > &stream, map< string, string > &mapHeadersRet, string &strMessageRet, int nProto)
 
string JSONRPCRequest (const string &strMethod, const Array &params, const Value &id)
 
Object JSONRPCReplyObj (const Value &result, const Value &error, const Value &id)
 
string JSONRPCReply (const Value &result, const Value &error, const Value &id)
 
Object JSONRPCError (int code, const string &message)
 

Function Documentation

string HTTPPost ( const string &  strMsg,
const map< string, string > &  mapRequestHeaders 
)

Definition at line 38 of file rpcprotocol.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

string HTTPReply ( int  nStatus,
const string &  strMsg,
bool  keepalive 
)

Definition at line 60 of file rpcprotocol.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Object JSONRPCError ( int  code,
const string &  message 
)

Definition at line 276 of file rpcprotocol.cpp.

Here is the caller graph for this function:

string JSONRPCReply ( const Value &  result,
const Value &  error,
const Value &  id 
)

Definition at line 270 of file rpcprotocol.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Object JSONRPCReplyObj ( const Value &  result,
const Value &  error,
const Value &  id 
)

Definition at line 258 of file rpcprotocol.cpp.

Here is the caller graph for this function:

string JSONRPCRequest ( const string &  strMethod,
const Array &  params,
const Value &  id 
)

Definition at line 249 of file rpcprotocol.cpp.

Here is the caller graph for this function:

int ReadHTTPHeaders ( std::basic_istream< char > &  stream,
map< string, string > &  mapHeadersRet 
)

Definition at line 180 of file rpcprotocol.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int ReadHTTPMessage ( std::basic_istream< char > &  stream,
map< string, string > &  mapHeadersRet,
string &  strMessageRet,
int  nProto 
)

Definition at line 206 of file rpcprotocol.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool ReadHTTPRequestLine ( std::basic_istream< char > &  stream,
int &  proto,
string &  http_method,
string &  http_uri 
)

Definition at line 122 of file rpcprotocol.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int ReadHTTPStatus ( std::basic_istream< char > &  stream,
int &  proto 
)

Definition at line 165 of file rpcprotocol.cpp.

Here is the call graph for this function:

Here is the caller graph for this function: