Bitcoin Core
28.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_NATPMP
=
false
;
9
10
enum
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
16
void
StartMapPort
(
bool
use_pcp);
17
void
InterruptMapPort
();
18
void
StopMapPort
();
19
20
#endif
// BITCOIN_MAPPORT_H
StartMapPort
void StartMapPort(bool use_pcp)
Definition:
mapport.cpp:185
StopMapPort
void StopMapPort()
Definition:
mapport.cpp:199
MapPortProtoFlag
MapPortProtoFlag
Definition:
mapport.h:10
PCP
@ PCP
Definition:
mapport.h:13
NONE
@ NONE
Definition:
mapport.h:11
DEFAULT_NATPMP
static constexpr bool DEFAULT_NATPMP
Definition:
mapport.h:8
InterruptMapPort
void InterruptMapPort()
Definition:
mapport.cpp:191
Generated on Fri Jan 17 2025 20:00:09 for Bitcoin Core by
1.9.4