Bitcoin Core 28.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
8static constexpr bool DEFAULT_NATPMP = false;
9
10enum MapPortProtoFlag : unsigned int {
11 NONE = 0x00,
12 // 0x01 was for UPnP, for which we dropped support.
13 PCP = 0x02, // PCP with NAT-PMP fallback.
14};
15
16void StartMapPort(bool use_pcp);
17void InterruptMapPort();
18void StopMapPort();
19
20#endif // BITCOIN_MAPPORT_H
void StartMapPort(bool use_pcp)
Definition: mapport.cpp:185
void StopMapPort()
Definition: mapport.cpp:199
MapPortProtoFlag
Definition: mapport.h:10
@ PCP
Definition: mapport.h:13
@ NONE
Definition: mapport.h:11
static constexpr bool DEFAULT_NATPMP
Definition: mapport.h:8
void InterruptMapPort()
Definition: mapport.cpp:191