Back to product page

Connected event


Fires when wodSSHTunnel connects to a remote server.

Syntax

  • Basic
Private Sub object_Connected()
The Connected(object) syntax has these parts:
objectA wodTunnel object.

Remarks

After you have set up the hostname and proper login credentials and you have issued the Connect method, wodSSHTunnel will try to connect to the server and notify you when connection occurs. It relies upon the use of an event because it cannot operate in blocking mode When you receive the Connected event you can Start a specific channel that you want to forward or you can call StartAll and forget about them. However, if an error occurrs, the Disconnected event will be fired instead. This will contain the ErrorCode and ErrorText arguments which are set to the error description. In this case you will have to reconnect to the server.

Platforms

Windows