Bitcoin Core  27.99.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:322
void StopMapPort()
Definition: mapport.cpp:330
MapPortProtoFlag
Definition: mapport.h:12
@ UPNP
Definition: mapport.h:14
@ NAT_PMP
Definition: mapport.h:15
@ NONE
Definition: mapport.h:13
static constexpr bool DEFAULT_NATPMP
Definition: mapport.h:10
void InterruptMapPort()
Definition: mapport.cpp:326
static constexpr bool DEFAULT_UPNP
Definition: mapport.h:8