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
Connected method
Called when wodSSH connects to remote server.
Type
NoneSyntax
- Basic
object.Connected Owner, ErrorCode, ErrorText
The Connected(object,Owner,ErrorCode,ErrorText) syntax has these parts:
The Connected(object,Owner,ErrorCode,ErrorText) syntax has these parts:
object | An expression evaluating to an object of type IwodSSHNotify. |
Owner | A wodSSHCom object. |
ErrorCode | An Integer value. Error number for error that occurred, if any. |
ErrorText | A String value. Text description of error that occurred, if any. |
Remarks
This method is called only if you implemented the IwodSSHNotify interface in your application, and the wodSSH.Notification property has received a reference to instance of your implementation.The Connected notification method will always be called after the Connect method is issued. If wodSSH successfully connected to the server, ErrorCode will be set to 0 and you can start sending/receiving data from the server. If ErrorCode is not 0 then wodSSH will immediately close the connection.
For SSH protocols, it is possible that wodSSH will internally negotiate connection parameters before the Connected notification method is called at all. This is done to make wodSSH as transparent to the protocol used as possible. You might notice packets being transmitted to and from the server whilst connecting, meaning wodSSH is already connected but is still negotiating protocol parameters.
If SSH protocols are used, please check the Protocol property as you find that it has been changed internally by wodSSH. This is possible if you set it to SSHAuto. wodSSH will negotiate whatever SSH protocol version is possible and change the Protocol property accordingly.