Mesen-SX/Utilities/UPnPPortMapper.h
NovaSquirrel c0e249e993 Revert "Merge branch 'reformat_code'"
This reverts commit daf3b57e89, reversing
changes made to 7a6e0b7d77.
2021-03-10 11:13:28 -05:00

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);
};