c0e249e993
This reverts commitdaf3b57e89
, reversing changes made to7a6e0b7d77
.
21 lines
No EOL
363 B
C++
21 lines
No EOL
363 B
C++
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
|
|
using std::wstring;
|
|
|
|
enum class IPProtocol
|
|
{
|
|
TCP = 0,
|
|
UDP = 1
|
|
};
|
|
|
|
class UPnPPortMapper
|
|
{
|
|
private:
|
|
static vector<wstring> GetLocalIPs();
|
|
|
|
public:
|
|
static bool AddNATPortMapping(uint16_t internalPort, uint16_t externalPort, IPProtocol protocol);
|
|
static bool RemoveNATPortMapping(uint16_t externalPort, IPProtocol protocol);
|
|
}; |