Mesen-X/Utilities/UPnPPortMapper.h

21 lines
363 B
C
Raw Normal View History

2014-07-07 18:43:50 -04:00
#pragma once
#include "stdafx.h"
using std::wstring;
2014-07-07 18:43:50 -04:00
enum class IPProtocol
{
TCP = 0,
UDP = 1
};
class UPnPPortMapper
{
private:
static vector<wstring> GetLocalIPs();
2014-07-07 18:43:50 -04:00
public:
static bool AddNATPortMapping(uint16_t internalPort, uint16_t externalPort, IPProtocol protocol);
static bool RemoveNATPortMapping(uint16_t externalPort, IPProtocol protocol);
2014-07-07 18:43:50 -04:00
};