Bitcoin Core 28.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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_UPNP = false;
9
10static constexpr bool DEFAULT_NATPMP = false;
11
12enum MapPortProtoFlag : unsigned int {
13 NONE = 0x00,
14 UPNP = 0x01,
15 NAT_PMP = 0x02,
16};
17
18void StartMapPort(bool use_upnp, bool use_natpmp);
19void InterruptMapPort();
20void StopMapPort();
21
22#endif // BITCOIN_MAPPORT_H
void StartMapPort(bool use_upnp, bool use_natpmp)
Definition mapport.cpp:298
void StopMapPort()
Definition mapport.cpp:313
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:305
static constexpr bool DEFAULT_UPNP
Definition mapport.h:8