OROCHI
 
Loading...
Searching...
No Matches
GxP2PUPnPManager.h
Go to the documentation of this file.
1//===========================================================================
10//===========================================================================
11#pragma once
12
13// Windows専用
14#if defined(_WINDOWS) && defined(WIN32)
15
16GX_P2P_NAMESPACE_BEGIN()
17
18//===========================================================================
20//===========================================================================
21class GxP2PUPnPManager
22{
23 //------------------------------------------------------------
25 //------------------------------------------------------------
27public:
29 GxP2PUPnPManager(void);
31 ~GxP2PUPnPManager(void);
32
34 //------------------------------------------------------------
36 //------------------------------------------------------------
38public:
40 b32 openPort(nu16 port, GX_CSTR ipAddress);
42 b32 closePort(nu16 port);
44 b32 closePort(void);
46 GX_FORCE_INLINE void setExePath(GX_CSTR path) { _upnpInstance.setExePath(path); }
47
49 //------------------------------------------------------------
51 //------------------------------------------------------------
53private:
54 MyNetLib::MyNetworkUPnP _upnpInstance;
55
57};
58
59GX_P2P_NAMESPACE_END()
60
61#endif // _WINDOWS && WIN32
32bitブーリアン
Definition GxDefine.h:173