mirror of
https://github.com/libretro/Mesen.git
synced 2024-12-18 06:47:28 +00:00
21 lines
363 B
C++
21 lines
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);
|
|
}; |