![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <list>
#include <map>
#include <stdint.h>
#include <string>
#include <boost/filesystem.hpp>
#include <univalue.h>
Go to the source code of this file.
Functions | |
std::string | JSONRPCRequest (const std::string &strMethod, const UniValue ¶ms, const UniValue &id) |
UniValue | JSONRPCReplyObj (const UniValue &result, const UniValue &error, const UniValue &id) |
std::string | JSONRPCReply (const UniValue &result, const UniValue &error, const UniValue &id) |
UniValue | JSONRPCError (int code, const std::string &message) |
boost::filesystem::path | GetAuthCookieFile () |
bool | GenerateAuthCookie (std::string *cookie_out) |
bool | GetAuthCookie (std::string *cookie_out) |
void | DeleteAuthCookie () |
enum HTTPStatusCode |
HTTP status codes.
Enumerator | |
---|---|
HTTP_OK | |
HTTP_BAD_REQUEST | |
HTTP_UNAUTHORIZED | |
HTTP_FORBIDDEN | |
HTTP_NOT_FOUND | |
HTTP_BAD_METHOD | |
HTTP_INTERNAL_SERVER_ERROR | |
HTTP_SERVICE_UNAVAILABLE |
Definition at line 18 of file protocol.h.
enum RPCErrorCode |
Dash Core RPC error codes.
Definition at line 31 of file protocol.h.
void DeleteAuthCookie | ( | ) |
Delete RPC authentication cookie from disk
Definition at line 122 of file protocol.cpp.
bool GenerateAuthCookie | ( | std::string * | cookie_out | ) |
Generate a new RPC authentication cookie and write it to disk
the umask determines what permissions are used to create this file - these are set to 077 in init.cpp unless overridden with -sysperms.
Definition at line 79 of file protocol.cpp.
Referenced by InitRPCAuthentication().
bool GetAuthCookie | ( | std::string * | cookie_out | ) |
Read the RPC authentication cookie from disk
Definition at line 106 of file protocol.cpp.
Referenced by CallRPC().
boost::filesystem::path GetAuthCookieFile | ( | ) |
Get name of RPC authentication cookie file
Definition at line 72 of file protocol.cpp.
Referenced by DeleteAuthCookie(), GenerateAuthCookie(), and GetAuthCookie().
UniValue JSONRPCError | ( | int | code, |
const std::string & | message | ||
) |
Definition at line 51 of file protocol.cpp.
Referenced by HTTPReq_JSONRPC(), and JSONErrorReply().
Definition at line 39 of file protocol.cpp.
Referenced by JSONRPCExecOne(), and JSONRPCReply().