Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cUPnPNATPort Class Reference

#include <cUPnPNAT.h>

Public Member Functions

 cUPnPNATPort (NET_PORT_t nExternalPort=k_NET_PORT_INVALID, NET_PORT_t nInternalPort=k_NET_PORT_INVALID, IPPROTO_TYPE nProtocolType=IPPROTO_TCP, cString sDescription="")
 
void CheckDefaults ()
 
const GChar_tget_ProtocolName () const noexcept
 
cStringA getDescFull () const
 (Desc) [Proto:ExtPort] More...
 

Public Attributes

NET_PORT_t m_nExternalPort
 Port mapping external port. What the outside world will see. More...
 
NET_PORT_t m_nInternalPort
 Port mapping internal port. actual port should be irrelevant. (default = m_nExternalPort) More...
 
IPPROTO_TYPE m_nProtocolType
 IPPROTO_TCP,IPPROTO_UDP (default = IPPROTO_TCP) More...
 
cString m_sDescription
 Arbitrary Port mapping description. (default = AppName) More...
 
bool m_bEnabled
 

Detailed Description

similar to IStaticPortMapping data

Constructor & Destructor Documentation

◆ cUPnPNATPort()

GrayLib::cUPnPNATPort::cUPnPNATPort ( NET_PORT_t  nExternalPort = k_NET_PORT_INVALID,
NET_PORT_t  nInternalPort = k_NET_PORT_INVALID,
IPPROTO_TYPE  nProtocolType = IPPROTO_TCP,
cString  sDescription = "" 
)
inline

Member Function Documentation

◆ CheckDefaults()

void GrayLib::cUPnPNATPort::CheckDefaults ( )

◆ get_ProtocolName()

const GChar_t* GrayLib::cUPnPNATPort::get_ProtocolName ( ) const
inlinenoexcept

◆ getDescFull()

cStringA GrayLib::cUPnPNATPort::getDescFull ( ) const

(Desc) [Proto:ExtPort]

Member Data Documentation

◆ m_bEnabled

bool GrayLib::cUPnPNATPort::m_bEnabled

◆ m_nExternalPort

NET_PORT_t GrayLib::cUPnPNATPort::m_nExternalPort

Port mapping external port. What the outside world will see.

◆ m_nInternalPort

NET_PORT_t GrayLib::cUPnPNATPort::m_nInternalPort

Port mapping internal port. actual port should be irrelevant. (default = m_nExternalPort)

◆ m_nProtocolType

IPPROTO_TYPE GrayLib::cUPnPNATPort::m_nProtocolType

IPPROTO_TCP,IPPROTO_UDP (default = IPPROTO_TCP)

◆ m_sDescription

cString GrayLib::cUPnPNATPort::m_sDescription

Arbitrary Port mapping description. (default = AppName)


The documentation for this class was generated from the following files: