Bitcoin Core
28.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
src
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
StartMapPort
void StartMapPort(bool use_upnp, bool use_natpmp)
Definition
mapport.cpp:298
StopMapPort
void StopMapPort()
Definition
mapport.cpp:313
MapPortProtoFlag
MapPortProtoFlag
Definition
mapport.h:12
UPNP
@ UPNP
Definition
mapport.h:14
NAT_PMP
@ NAT_PMP
Definition
mapport.h:15
NONE
@ NONE
Definition
mapport.h:13
DEFAULT_NATPMP
static constexpr bool DEFAULT_NATPMP
Definition
mapport.h:10
InterruptMapPort
void InterruptMapPort()
Definition
mapport.cpp:305
DEFAULT_UPNP
static constexpr bool DEFAULT_UPNP
Definition
mapport.h:8
Generated on Thu Oct 3 2024 09:20:15 for Bitcoin Core by
1.12.0