0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-04 10:07:27 -05:00
bitcoin-bitcoin-core/src/mapport.h

23 lines
562 B
C
Raw Normal View History

// 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
2020-02-23 02:12:19 +02:00
static constexpr bool DEFAULT_UPNP = false;
static constexpr bool DEFAULT_NATPMP = false;
enum MapPortProtoFlag : unsigned int {
NONE = 0x00,
UPNP = 0x01,
2020-02-23 01:34:13 +02:00
NAT_PMP = 0x02,
};
2020-02-23 02:12:19 +02:00
void StartMapPort(bool use_upnp, bool use_natpmp);
void InterruptMapPort();
void StopMapPort();
#endif // BITCOIN_MAPPORT_H