Bitcoin ABC
0.31.0
P2P Digital Currency
Toggle main menu visibility
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Variables
a
b
c
d
f
g
h
i
k
m
n
o
p
s
t
u
v
w
Typedefs
Enumerations
Enumerator
a
b
c
d
e
h
i
l
m
n
p
q
r
s
t
u
v
w
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
!
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Variables
!
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
m
n
o
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Properties
Related Functions
:
a
b
c
d
e
f
g
i
o
p
r
s
t
u
v
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Typedefs
b
c
d
e
h
i
k
l
m
n
p
r
s
t
u
v
Enumerations
b
c
d
e
f
g
h
i
j
m
n
o
p
r
s
t
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
p
q
r
s
t
u
v
w
x
y
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
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
#ifdef USE_UPNP
9
static
constexpr
bool
DEFAULT_UPNP
= USE_UPNP;
10
#else
11
static
constexpr
bool
DEFAULT_UPNP
=
false
;
12
#endif
// USE_UPNP
13
14
#ifdef USE_NATPMP
15
static
constexpr
bool
DEFAULT_NATPMP
= USE_NATPMP;
16
#else
17
static
constexpr
bool
DEFAULT_NATPMP
=
false
;
18
#endif
// USE_NATPMP
19
20
enum
MapPortProtoFlag
:
unsigned
int
{
21
NONE
= 0x00,
22
UPNP
= 0x01,
23
NAT_PMP
= 0x02,
24
};
25
26
void
StartMapPort
(
bool
use_upnp,
bool
use_natpmp);
27
void
InterruptMapPort
();
28
void
StopMapPort
();
29
30
#endif
// BITCOIN_MAPPORT_H
StartMapPort
void StartMapPort(bool use_upnp, bool use_natpmp)
Definition:
mapport.cpp:362
StopMapPort
void StopMapPort()
Definition:
mapport.cpp:368
MapPortProtoFlag
MapPortProtoFlag
Definition:
mapport.h:20
UPNP
@ UPNP
Definition:
mapport.h:22
NAT_PMP
@ NAT_PMP
Definition:
mapport.h:23
NONE
@ NONE
Definition:
mapport.h:21
DEFAULT_NATPMP
static constexpr bool DEFAULT_NATPMP
Definition:
mapport.h:17
InterruptMapPort
void InterruptMapPort()
Definition:
mapport.cpp:365
DEFAULT_UPNP
static constexpr bool DEFAULT_UPNP
Definition:
mapport.h:11
Generated on Sat Apr 5 2025 11:01:59 for Bitcoin ABC by
1.9.4