Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
JSONRPCRequest Class Reference

#include <server.h>

Collaboration diagram for JSONRPCRequest:
[legend]

Public Member Functions

 JSONRPCRequest ()
 If using batch JSON request, this object won't get the underlying HTTPRequest. More...
 
 JSONRPCRequest (HTTPRequest *_req)
 
void PollStart ()
 Start long-polling. More...
 
void PollPing ()
 Ping long-poll connection with an empty character to make sure it's still alive. More...
 
bool PollAlive ()
 Returns whether the underlying long-poll connection is still alive. More...
 
void PollCancel ()
 End a long poll request. More...
 
void PollReply (const UniValue &result)
 Return the JSON result of a long poll request. More...
 
void parse (const UniValue &valRequest)
 

Public Attributes

UniValue id
 
std::string strMethod
 
UniValue params
 
bool fHelp
 
std::string URI
 
std::string authUser
 
bool isLongPolling
 
HTTPRequestreq
 

Detailed Description

Definition at line 54 of file server.h.

Constructor & Destructor Documentation

JSONRPCRequest::JSONRPCRequest ( )
inline

If using batch JSON request, this object won't get the underlying HTTPRequest.

Definition at line 69 of file server.h.

JSONRPCRequest::JSONRPCRequest ( HTTPRequest _req)

Definition at line 361 of file server.cpp.

Member Function Documentation

void JSONRPCRequest::parse ( const UniValue valRequest)

Definition at line 400 of file server.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool JSONRPCRequest::PollAlive ( )

Returns whether the underlying long-poll connection is still alive.

Definition at line 365 of file server.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void JSONRPCRequest::PollCancel ( )

End a long poll request.

Definition at line 384 of file server.cpp.

Here is the call graph for this function:

void JSONRPCRequest::PollPing ( )

Ping long-poll connection with an empty character to make sure it's still alive.

Definition at line 378 of file server.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void JSONRPCRequest::PollReply ( const UniValue result)

Return the JSON result of a long poll request.

Definition at line 389 of file server.cpp.

Here is the call graph for this function:

void JSONRPCRequest::PollStart ( )

Start long-polling.

Definition at line 369 of file server.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

std::string JSONRPCRequest::authUser

Definition at line 62 of file server.h.

bool JSONRPCRequest::fHelp

Definition at line 60 of file server.h.

UniValue JSONRPCRequest::id

Definition at line 57 of file server.h.

bool JSONRPCRequest::isLongPolling

Definition at line 64 of file server.h.

UniValue JSONRPCRequest::params

Definition at line 59 of file server.h.

HTTPRequest* JSONRPCRequest::req

Definition at line 107 of file server.h.

std::string JSONRPCRequest::strMethod

Definition at line 58 of file server.h.

std::string JSONRPCRequest::URI

Definition at line 61 of file server.h.


The documentation for this class was generated from the following files: