MPMA Framework 0.4
UPNP.h
Go to the documentation of this file.
00001 
00002 //written by Luke Lenhart, 2008
00003 //See /docs/License.txt for details on how this code may be used.
00004 
00005 #pragma once
00006 
00007 #include "../base/Setup.h"
00008 
00009 #ifdef MPMA_COMPILE_NET
00010 
00011 #include "Common.h"
00012 
00013 #include <vector>
00014 
00015 class MPMAMemoryManager; //FD
00016 
00017 namespace NET
00018 {
00020     namespace UPNP
00021     {
00023         bool IsAvailable();
00024 
00026         std::string GetInternetFacingIP();
00027 
00029         std::string GetDeviceName();
00030 
00032         extern bool AllowNinjaNatTechniques;
00033 
00035         void ClaimUDPPort(uint16 port);
00036 
00038         void ClaimTCPPort(uint16 port);
00039 
00041         void ReleaseUDPPort(uint16 port);
00042 
00044         void ReleaseTCPPort(uint16 port);
00045     }
00046 }
00047 
00048 #endif //#ifdef MPMA_COMPILE_NET
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends