Changeset View
Changeset View
Standalone View
Standalone View
src/mapport.h
| // Copyright (c) 2011-2020 The Bitcoin Core developers | // Copyright (c) 2011-2020 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_MAPPORT_H | #ifndef BITCOIN_MAPPORT_H | ||||
| #define BITCOIN_MAPPORT_H | #define BITCOIN_MAPPORT_H | ||||
| static constexpr bool DEFAULT_NATPMP = false; | static constexpr bool DEFAULT_NATPMP = false; | ||||
| enum MapPortProtoFlag : unsigned int { | void StartMapPort(bool enable); | ||||
| NONE = 0x00, | |||||
| // 0x01 was for UPnP, for which we dropped support. | |||||
| // PCP with NAT-PMP fallback. | |||||
| PCP = 0x02, | |||||
| }; | |||||
| void StartMapPort(bool use_pcp); | |||||
| void InterruptMapPort(); | void InterruptMapPort(); | ||||
| void StopMapPort(); | void StopMapPort(); | ||||
| #endif // BITCOIN_MAPPORT_H | #endif // BITCOIN_MAPPORT_H | ||||