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_INTERFACES_NODE_H | #ifndef BITCOIN_INTERFACES_NODE_H | ||||
#define BITCOIN_INTERFACES_NODE_H | #define BITCOIN_INTERFACES_NODE_H | ||||
#include <addrdb.h> // For banmap_t | #include <addrdb.h> // For banmap_t | ||||
#include <amount.h> // For Amount | #include <amount.h> // For Amount | ||||
#include <init.h> // For HelpMessageMode | |||||
#include <net.h> // For CConnman::NumConnections | #include <net.h> // For CConnman::NumConnections | ||||
#include <netaddress.h> // For Network | #include <netaddress.h> // For Network | ||||
#include <cstddef> | #include <cstddef> | ||||
#include <cstdint> | #include <cstdint> | ||||
#include <functional> | #include <functional> | ||||
#include <memory> | #include <memory> | ||||
#include <string> | #include <string> | ||||
▲ Show 20 Lines • Show All 62 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. | //! Setup arguments | ||||
virtual std::string helpMessage(HelpMessageMode mode) = 0; | virtual void setupServerArgs() = 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; | ||||
//! Get number of connections. | //! Get number of connections. | ||||
▲ Show 20 Lines • Show All 172 Lines • Show Last 20 Lines |