Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/protocol.h
// Copyright (c) 2010 Satoshi Nakamoto | // Copyright (c) 2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_RPCPROTOCOL_H | #ifndef BITCOIN_RPC_PROTOCOL_H | ||||
#define BITCOIN_RPCPROTOCOL_H | #define BITCOIN_RPC_PROTOCOL_H | ||||
#include <fs.h> | #include <fs.h> | ||||
#include <cstdint> | #include <cstdint> | ||||
#include <list> | #include <list> | ||||
#include <map> | #include <map> | ||||
#include <string> | #include <string> | ||||
▲ Show 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | |||||
bool GenerateAuthCookie(std::string *cookie_out); | bool GenerateAuthCookie(std::string *cookie_out); | ||||
/** Read the RPC authentication cookie from disk */ | /** Read the RPC authentication cookie from disk */ | ||||
bool GetAuthCookie(std::string *cookie_out); | bool GetAuthCookie(std::string *cookie_out); | ||||
/** Delete RPC authentication cookie from disk */ | /** Delete RPC authentication cookie from disk */ | ||||
void DeleteAuthCookie(); | void DeleteAuthCookie(); | ||||
/** Parse JSON-RPC batch reply into a vector */ | /** Parse JSON-RPC batch reply into a vector */ | ||||
std::vector<UniValue> JSONRPCProcessBatchReply(const UniValue &in, size_t num); | std::vector<UniValue> JSONRPCProcessBatchReply(const UniValue &in, size_t num); | ||||
#endif // BITCOIN_RPCPROTOCOL_H | #endif // BITCOIN_RPC_PROTOCOL_H |