wodSSHTunnel ActiveX Control - StateChange Method
      
 

Description

Called when wodSSHTunnel changes its state.


Return Type

None  


Syntax

object.StateChange Owner, OldState



The StateChange Method syntax has these parts:

Part Description
object An expression evaluating to an object of type wodTunnelNotify.
Owner Required. A wodTunnelCom object. Reference to the wodTunnelCom instance that called this notification method.
OldState Required. A StatesEnum enumeration, as described in settings. Holds previous state.

Settings

The settings for OldState are:

Constant Value Description
 Disconnected 0 Disconnected from server.
 Connecting 1 Connecting to server.
 Connected 2 Connected to server - idle.
 Receiving 3 Receiving data from server.
 Sending 4 Sending data to server.

Remarks

This method is called only if you have implemented the IwodSSHTunnelNotify interface in your application and the wodTunnel1.Notification property has received a reference to an instance of your implementation.

The StateChange notification method is called each time wodSSHTunnel's internal state changes (with regard to its connection with the SSH server). Initially it is set to Disconnected. Once you initiate a new connection, it will change to Connecting, etc..

Using this notification method you can determine whether there is anything happening with wodSSHTunnel. You can access the current state using the State property.