2020-02-06 19:00:26 +02: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
|
|
|
|
|
2020-02-23 02:12:19 +02:00
|
|
|
static constexpr bool DEFAULT_NATPMP = false;
|
2020-02-06 19:00:26 +02:00
|
|
|
|
2020-02-23 00:10:48 +02:00
|
|
|
enum MapPortProtoFlag : unsigned int {
|
|
|
|
NONE = 0x00,
|
2024-10-20 20:40:22 +02:00
|
|
|
// 0x01 was for UPnP, for which we dropped support.
|
2024-05-05 16:20:45 +02:00
|
|
|
PCP = 0x02, // PCP with NAT-PMP fallback.
|
2020-02-23 00:10:48 +02:00
|
|
|
};
|
|
|
|
|
2024-10-20 20:45:12 +02:00
|
|
|
void StartMapPort(bool use_pcp);
|
2020-02-06 19:00:26 +02:00
|
|
|
void InterruptMapPort();
|
|
|
|
void StopMapPort();
|
|
|
|
|
|
|
|
#endif // BITCOIN_MAPPORT_H
|