
SetAdapter method
Sets adapter to be used with devVPN.
Type
Integer.Syntax
- C++
int SetAdapter(CVPNInterface *adapter);
The SetAdapter(adapter) syntax has these parts:
The SetAdapter(adapter) syntax has these parts:
adapter | Reference to CVPNinterface object, returned by VPNAdapter function. |
Return value | 0 (ErrorNone) if success, otherwise negative value from Errors enumeration. |
Remarks
Before Start method is called, you must use SetAdapter to choose which adapter will be used to forward network traffic between your and remote peers. It must have valid IP and Netmask, and all peers will also need to have IP address in same network range (defined by Netmask) in order to successfully route network packets.Platforms
WindowsMac OSX
Linux
BSD
iPhone IOS