6 #ifndef _INC_cUPnPNAT_H
7 #define _INC_cUPnPNAT_H
13 #include "../Net/cNetSocket.h"
14 #include "../Net/cNetAddrName.h"
36 : m_nExternalPort(nExternalPort)
37 , m_nInternalPort(nInternalPort)
38 , m_nProtocolType(nProtocolType)
39 , m_sDescription(sDescription)
46 if (m_nProtocolType == IPPROTO_UDP)
77 void RemoveMappings();
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
#define _GT(x)
like _T(x) macro for static text.
Definition: StrConst.h:27
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
Definition: cNetAddr.h:31
Definition: cUPnPNAT.h:23
const GChar_t * get_ProtocolName() const noexcept
Definition: cUPnPNAT.h:44
cString m_sDescription
Arbitrary Port mapping description. (default = AppName)
Definition: cUPnPNAT.h:31
NET_PORT_t m_nExternalPort
Port mapping external port. What the outside world will see.
Definition: cUPnPNAT.h:28
bool m_bEnabled
Definition: cUPnPNAT.h:32
NET_PORT_t m_nInternalPort
Port mapping internal port. actual port should be irrelevant. (default = m_nExternalPort)
Definition: cUPnPNAT.h:29
cUPnPNATPort(NET_PORT_t nExternalPort=k_NET_PORT_INVALID, NET_PORT_t nInternalPort=k_NET_PORT_INVALID, IPPROTO_TYPE nProtocolType=IPPROTO_TCP, cString sDescription="")
Definition: cUPnPNAT.h:35
IPPROTO_TYPE m_nProtocolType
IPPROTO_TCP,IPPROTO_UDP (default = IPPROTO_TCP)
Definition: cUPnPNAT.h:30
Definition: cUPnPNAT.h:54
cString get_LastErrorStr() const
Definition: cUPnPNAT.h:79
UNITTEST_FRIEND(cUPnPNAT)
WORD NET_PORT_t
WinINet calls ports NET_PORT_t INTERNET_PORT = a service.
Definition: cNetPort.h:21
UNITTEST2_PREDEF(cQuadtree)
int IPPROTO_TYPE
enum of IPPROTO_TCP,IPPROTO_UDP, etc. getprotobyname() and getprotobynumber()
Definition: cNetSocket.h:34
char GChar_t
My version of TCHAR, _TCHAR.
Definition: StrConst.h:26