Disconnected Event
    
 

Description

Fires when wodVPN disconnects from remote wodVPN instance.

Syntax

Private Sub object_Disconnected(ErrorCode, ErrorText)

The Disconnected Event syntax has these parts:

PartDescription
objectA wodVPN object.
ErrorCodeA Long value. Error number that caused wodVPN to disconnect. 0 if no errors.
ErrorTextA String value. Text description of the error.

Remarks

When this event is fired, 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 the Timeout property to increase timeout value.