Bitcoin Core
25.99.0
P2P Digital Currency
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:321
StopMapPort
void StopMapPort()
Definition:
mapport.cpp:329
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:325
DEFAULT_UPNP
static constexpr bool DEFAULT_UPNP
Definition:
mapport.h:8
Generated on Wed Oct 4 2023 02:44:43 for Bitcoin Core by
1.9.1