Connected Method
      
 

Description

Called when wodVPN connects to remote wodVPN instance.

Return Type

None  

Syntax

object.Connected Owner, PeerID, IP, Port

The Connected Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type IwodVPNNotify.
Owner A wodVPNCom object. Reference to the wodVPNCom instance that called this notification method.
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

This method is called only if you have implemented the IwodVPNNotify interface in your application and the wodVPN1.Notification property has received a reference to an instance of your implementation.

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 notification method will be called. 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.