Disconnected Method
      
 

Description

Called when wodVPN disconnects from remote wodVPN instance.

Return Type

None  

Syntax

object.Disconnected Owner, ErrorCode, ErrorText

The Disconnected 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.
ErrorCodeA Long value. Error number that caused wodVPN to disconnect. 0 if no errors.
ErrorTextA String value. Text description of the error.

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.

When this notification method is called, it means that connection with remote wodVPN instance is lost. You cannot forward any ports or use channels until connection is re-established again.

If connection drops by itself, one of the reasons could be that timer expired. You should use Timeout property to increase timeout value.