Back to product page

Create method


Creates new devP2P class instance.

Syntax

  • C#
  • C++
  • VB.NET
IntPtr devP2P.Create();
The Create() syntax has these parts:
Return valueReference to new created CP2P instance.

static CP2P *CP2P::Create(void);
The Create() syntax has these parts:
Return valueReference to new created CP2P instance.

Function P2P_Create() As IntPtr
The Create() syntax has these parts:
Return valueReference to new created CP2P instance.

Remarks

This is a static method that creates new instance of devP2P. 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++

Platforms

Windows
Mac OSX
Linux
BSD