
CVPNInterface
Holds information about virtual network adapter.
Guid | Returns GUID of the interface. |
LocalIP | Holds local IP address of the interface. |
LocalMAC | Holds MAC address of local interface. |
LocalNetmask | Holds netmask of local interface. |
Name | Returns name of the interface. |
SetIP | Attempts to set local IP and netmask for the adapter. |
Remarks
CVPNInterface object holds information about each Interface (or network adapter) found on your computer that is capable of being used by devP2P. In order to use any of those adapters you should set its IP address and Netmask, and put local peer and remote peer to same network. For example, you can set local side to 192.168.1.1 (netmask 255.255.255.0) and remote peer's IP address to 192.168.1.2 (netmask 255.255.255.0). If you use wrong IP/Netmask combination, it is possible that sockets will not route packets correctly to remote side.devP2P collects all raw packets from VPN adapter and routes it to remote side. Remote side then unpacks it and "pushes" to adapter so it becomes available to sockets stack. System do not see a difference between real network adapters which are connected through cable, and our virtual network adapters which are connected through devP2P.
Currently Windows version of devP2P supports included 'WeOnlyDo Network Adapter', but it can also use Wippien's adapter, and OpenVPN's adapter. Only one process at a time can use one adapter, but multiple instances of devP2P in same process (inside your application) can all share same adapter.
Platforms
WindowsMac OSX
Linux
BSD