Connected Event
    
 

Description

Fires when wodVPN connects to remote wodVPN instance.

Syntax

Private Sub object_Connected(PeerID, IP, Port)

The Connected Event syntax has these parts:

PartDescription
objectA wodVPN object.
PeerIDA String value. Holds ID of remote peer, as he specified it in MyID property.
IPA String value. Holds IP address where UDP packets are sent to remote peer.
PortA Long value. Holds remote UDP port where packets are sent.

Remarks

After remote wodVPN peer is located (through Search method), and Connect method was called, wodVPN will try to connect to remote wodVPN peer. After successful connection, this event will be fired. Now you can Add channels to begin forwarding ports between local and remote side, can send text messages etc.

When you want to disconnect from remote wodVPN instance, use Disconnect method.