Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/node.h
// Copyright (c) 2018 The Bitcoin Core developers | // Copyright (c) 2018 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_INTERFACE_NODE_H | #ifndef BITCOIN_INTERFACE_NODE_H | ||||
#define BITCOIN_INTERFACE_NODE_H | #define BITCOIN_INTERFACE_NODE_H | ||||
#include <init.h> // For HelpMessageMode | |||||
#include <netaddress.h> // For Network | #include <netaddress.h> // For Network | ||||
#include <functional> | #include <functional> | ||||
#include <memory> | #include <memory> | ||||
#include <string> | #include <string> | ||||
class Config; | class Config; | ||||
class HTTPRPCRequestProcessor; | class HTTPRPCRequestProcessor; | ||||
▲ Show 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | public: | ||||
virtual void appShutdown() = 0; | virtual void appShutdown() = 0; | ||||
//! Start shutdown. | //! Start shutdown. | ||||
virtual void startShutdown() = 0; | virtual void startShutdown() = 0; | ||||
//! Return whether shutdown was requested. | //! Return whether shutdown was requested. | ||||
virtual bool shutdownRequested() = 0; | virtual bool shutdownRequested() = 0; | ||||
//! Get help message string. | |||||
virtual std::string helpMessage(HelpMessageMode mode) = 0; | |||||
//! Map port. | //! Map port. | ||||
virtual void mapPort(bool use_upnp) = 0; | virtual void mapPort(bool use_upnp) = 0; | ||||
//! Get proxy. | //! Get proxy. | ||||
virtual bool getProxy(Network net, proxyType &proxy_info) = 0; | virtual bool getProxy(Network net, proxyType &proxy_info) = 0; | ||||
//! Register handler for init messages. | //! Register handler for init messages. | ||||
using InitMessageFn = std::function<void(const std::string &message)>; | using InitMessageFn = std::function<void(const std::string &message)>; | ||||
Show All 21 Lines |