Initial Vexta Core v0.1.0 release
This commit is contained in:
commit
25c454329d
2481 changed files with 689289 additions and 0 deletions
30
src/mapport.h
Normal file
30
src/mapport.h
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
// Copyright (c) 2011-2020 The DigiByte Core developers
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#ifndef DIGIBYTE_MAPPORT_H
|
||||
#define DIGIBYTE_MAPPORT_H
|
||||
|
||||
#ifdef USE_UPNP
|
||||
static constexpr bool DEFAULT_UPNP = USE_UPNP;
|
||||
#else
|
||||
static constexpr bool DEFAULT_UPNP = false;
|
||||
#endif // USE_UPNP
|
||||
|
||||
#ifdef USE_NATPMP
|
||||
static constexpr bool DEFAULT_NATPMP = USE_NATPMP;
|
||||
#else
|
||||
static constexpr bool DEFAULT_NATPMP = false;
|
||||
#endif // USE_NATPMP
|
||||
|
||||
enum MapPortProtoFlag : unsigned int {
|
||||
NONE = 0x00,
|
||||
UPNP = 0x01,
|
||||
NAT_PMP = 0x02,
|
||||
};
|
||||
|
||||
void StartMapPort(bool use_upnp, bool use_natpmp);
|
||||
void InterruptMapPort();
|
||||
void StopMapPort();
|
||||
|
||||
#endif // DIGIBYTE_MAPPORT_H
|
||||
Loading…
Reference in a new issue