
Create method
Creates new devVPN class instance.
Syntax
- C#
- C++
- VB.NET
IntPtr devVPN.Create();
The Create() syntax has these parts:
The Create() syntax has these parts:
Return value | Reference to new created CVPN instance. |
static CVPN *CVPN::Create(void);
The Create() syntax has these parts:
The Create() syntax has these parts:
Return value | Reference to new created CVPN instance. |
Function VPN_Create() As IntPtr
The Create() syntax has these parts:
The Create() syntax has these parts:
Return value | Reference to new created CVPN instance. |
Remarks
This is a static method that creates new instance of devVPN. After instance is successfully obtained and used, you should destroy it using Destroy method.You should not delete the instance by yourself. Always use Destroy method instead.
Make sure you initialized the library first, by calling libInit function!
Code sample
- C++
// Initialize devP2P library
devP2Plib::libInit();
devP2Plib::upnpInit();
// Give some time for UPNP to exchange packets
Sleep(200);
devP2Plib::CVPN *v1 = devP2Plib::CVPN::Create();
// ... //
devP2Plib::libInit();
devP2Plib::upnpInit();
// Give some time for UPNP to exchange packets
Sleep(200);
devP2Plib::CVPN *v1 = devP2Plib::CVPN::Create();
// ... //
Platforms
WindowsMac OSX
Linux
BSD
iPhone IOS