2020-02-06 14:00:26 -03:00
|
|
|
// Copyright (c) 2011-2020 The Bitcoin Core developers
|
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
|
#ifndef BITCOIN_MAPPORT_H
|
|
|
|
#define BITCOIN_MAPPORT_H
|
|
|
|
|
|
|
|
/** -upnp default */
|
|
|
|
#ifdef USE_UPNP
|
|
|
|
static const bool DEFAULT_UPNP = USE_UPNP;
|
|
|
|
#else
|
|
|
|
static const bool DEFAULT_UPNP = false;
|
|
|
|
#endif
|
|
|
|
|
2020-02-22 19:10:48 -03:00
|
|
|
enum MapPortProtoFlag : unsigned int {
|
|
|
|
NONE = 0x00,
|
|
|
|
UPNP = 0x01,
|
|
|
|
};
|
|
|
|
|
|
|
|
void StartMapPort(bool use_upnp);
|
2020-02-06 14:00:26 -03:00
|
|
|
void InterruptMapPort();
|
|
|
|
void StopMapPort();
|
|
|
|
|
|
|
|
#endif // BITCOIN_MAPPORT_H
|