![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cUPnPNAT.h>
Public Member Functions | |
cUPnPNAT (void) | |
~cUPnPNAT (void) | |
HRESULT | AddNATPort (cUPnPNATPort &mapping, bool bTryRandom=false) |
HRESULT | RemoveNATPort (const cUPnPNATPort &mapping, bool bRemoveFromList=true) |
void | RemoveMappings () |
cString | get_LastErrorStr () const |
const cNetAddress & | get_LocalAddr () |
cStringA | get_LocalAddrStr () |
cWinString | get_LocalAddrBSTR () |
UNITTEST_FRIEND (cUPnPNAT) | |
UPNP to allow incoming ports NAT If we have multiple local addresses on multiple NICs we could have multiple uPnp interfaces ? ASSUME cComInit CoInitialize was called for this thread.
GrayLib::cUPnPNAT::cUPnPNAT | ( | void | ) |
ASSUME cComInit CoInitialize was called for this thread.
GrayLib::cUPnPNAT::~cUPnPNAT | ( | void | ) |
HRESULT GrayLib::cUPnPNAT::AddNATPort | ( | cUPnPNATPort & | mapping, |
bool | bTryRandom = false |
||
) |
Adds a NAT Port Mapping ASSUME cComInit CoInitialize was called for this thread.
|
inline |
const cNetAddress & GrayLib::cUPnPNAT::get_LocalAddr | ( | ) |
cWinString GrayLib::cUPnPNAT::get_LocalAddrBSTR | ( | ) |
Returns a cWinString with the local IP in format 123.123.123.123
cStringA GrayLib::cUPnPNAT::get_LocalAddrStr | ( | ) |
Returns a cString with the local IP in format 123.123.123.123
void GrayLib::cUPnPNAT::RemoveMappings | ( | ) |
HRESULT GrayLib::cUPnPNAT::RemoveNATPort | ( | const cUPnPNATPort & | mapping, |
bool | bRemoveFromList = true |
||
) |
Removes a NAT Port Mapping
GrayLib::cUPnPNAT::UNITTEST_FRIEND | ( | cUPnPNAT | ) |