Bitcoin Core  28.1.0
P2P Digital Currency
mapport.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2020 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_MAPPORT_H
6 #define BITCOIN_MAPPORT_H
7 
8 static constexpr bool DEFAULT_UPNP = false;
9 
10 static constexpr bool DEFAULT_NATPMP = false;
11 
12 enum MapPortProtoFlag : unsigned int {
13  NONE = 0x00,
14  UPNP = 0x01,
15  NAT_PMP = 0x02,
16 };
17 
18 void StartMapPort(bool use_upnp, bool use_natpmp);
19 void InterruptMapPort();
20 void StopMapPort();
21 
22 #endif // BITCOIN_MAPPORT_H
void StartMapPort(bool use_upnp, bool use_natpmp)
Definition: mapport.cpp:298
MapPortProtoFlag
Definition: mapport.h:12
static constexpr bool DEFAULT_UPNP
Definition: mapport.h:8
void StopMapPort()
Definition: mapport.cpp:313
void InterruptMapPort()
Definition: mapport.cpp:305
static constexpr bool DEFAULT_NATPMP
Definition: mapport.h:10
Definition: mapport.h:14
Definition: mapport.h:13