wodSSHTunnel ActiveX Control - Connected Event
    
 

Description

Fires when wodSSHTunnel connects to a remote server.


Syntax

Private Sub object_Connected()



The Connected Event syntax has these parts:

Part Description
object A 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.