Back to product page
- Introduction
- Overview
- License Agrement
- Getting Started
- Objects
- Enumerations
- wodSSH
- Methods
- Properties
- AllocatePty
- Authentication
- Blocking
- ClientName
- Columns
- Command
- Compression
- DataOut
- DataReady
- Encoding
- Encryption
- EncryptionList
- ErrorText
- ExitSignal
- ExitStatus
- FIPS
- ForwardHost
- ForwardPort
- HMacList
- Hostname
- KeepAlives
- KeyExchangeList
- KeyForward
- KeySignatureList
- LastError
- Login
- MyHostname
- MyIP
- Notification
- Password
- Port
- PrivateKey
- Prompt
- Protocol
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RemoteIdentification
- Rows
- ShowStdErrorMessages
- State
- StateText
- StripANSI
- StripNull
- Subsystem
- TerminalSpeed
- TerminalType
- Timeout
- UseIPv6
- Version
- Events
- IwodSSHNotify
- How to get support?
- Technical information
- Fast notifications interface
- Error list
StateChange method
Called when wodSSH changes its state.
Type
NoneSyntax
- Basic
object.StateChange Owner, OldState
The StateChange(object,Owner,OldState) syntax has these parts:
The StateChange(object,Owner,OldState) syntax has these parts:
object | An expression evaluating to an object of type IwodSSHNotify. |
Owner | A wodSSHCom object. |
OldState | A StatesEnum enumeration, as described in settings. |
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. |
This method is called only if you implemented the IwodSSHNotify interface in your application, and the wodSSH.Notification property has received a reference to the instance of your implementation.
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.