Back to product page

StateChange event


Fires when wodSSH changes its state.

Syntax

  • Basic
Private Sub object_StateChange(OldState)
The StateChange(object,OldState) syntax has these parts:
objectA wodSSH object.
OldStateA StatesEnum enumeration, as described in settings. Holds previous state.

Remarks

The settings for OldState are:

Constant Value Description
Disconnected 0 Disconnected from server.
Connecting 1 Connecting to server.
LogonInProgress 2 Sending authentication data.
Connected 3 Connected to server - idle.
ReceivedPrompt 4 Received command prompt.
Receiving 5 Receiving data from server.
Sending 6 Sending data to server.


The StateChange event is fired each time wodSSH's internal state changes. Initially it is set to Disconnected. Once you initiate a new connection it will change to Connecting, etc..

Using this event you can see if there is something happening with wodSSH, or it is idle and waiting for your commands.

You can determine the current state using the State property.

Platforms

Windows