#include <mapport.h>
#include <clientversion.h>
#include <common/netif.h>
#include <common/pcp.h>
#include <common/system.h>
#include <logging.h>
#include <net.h>
#include <netaddress.h>
#include <netbase.h>
#include <random.h>
#include <util/thread.h>
#include <util/threadinterrupt.h>
#include <atomic>
#include <cassert>
#include <chrono>
#include <functional>
#include <string>
#include <thread>
Go to the source code of this file.
◆ DispatchMapPort()
static void DispatchMapPort |
( |
| ) |
|
|
static |
◆ InterruptMapPort()
void InterruptMapPort |
( |
| ) |
|
◆ MapPortProtoSetEnabled()
◆ ProcessPCP()
static bool ProcessPCP |
( |
| ) |
|
|
static |
◆ StartMapPort()
void StartMapPort |
( |
bool |
use_pcp | ) |
|
◆ StartThreadMapPort()
void StartThreadMapPort |
( |
| ) |
|
◆ StopMapPort()
◆ ThreadMapPort()
static void ThreadMapPort |
( |
| ) |
|
|
static |
◆ g_mapport_current_proto
◆ g_mapport_enabled_protos
◆ g_mapport_interrupt
◆ g_mapport_thread
std::thread g_mapport_thread |
|
static |
◆ PORT_MAPPING_REANNOUNCE_PERIOD
constexpr auto PORT_MAPPING_REANNOUNCE_PERIOD {20min} |
|
staticconstexpr |
◆ PORT_MAPPING_RETRY_PERIOD
constexpr auto PORT_MAPPING_RETRY_PERIOD {5min} |
|
staticconstexpr |