Back to product page

Disconnected event

Fires when wodSSHTunnel disconnects from the server.


  • Basic
Private Sub object_Disconnected(ErrorCode, ErrorText)
The Disconnected(object,ErrorCode,ErrorText) syntax has these parts:
objectA wodTunnel object.
ErrorCodeAn Integer value. Holds the error number or 0 if no error occurred.
ErrorTextA String value. Text description of the error.


When this event is fired, it means that wodSSHTunnel has lost connection with the SSH server. You cannot forward channels until you Connect to an SSH server again.

The ErrorCode and ErrorText arguments will provide information on why disconnection occurred. If you initiated it (using Disconnect method), they will be empty (or 0).