Back to product page
- Introduction
- Overview
- License agreement
- Getting Started
- Objects
- Enumerations
- wodSFTP
- Methods
- Abort
- About
- AppendData
- AppendFile
- Connect
- DeleteFile
- DeleteFiles
- Disconnect
- ExtendedCmd
- GetAttributes
- GetData
- GetDataAt
- GetFile
- GetFileAt
- GetFiles
- ListAttributes
- ListDir
- ListNames
- LoopFiles
- MakeDir
- PutData
- PutDataAt
- PutFile
- PutFileAt
- PutFiles
- RealPath
- RemoteClose
- RemoteOpen
- RemoteRead
- RemoteWrite
- RemoveDir
- Rename
- SetAttributes
- SetAttributes64
- Properties
- Authentication
- Blocking
- BufferSize
- ClientName
- Compression
- Encryption
- EncryptionList
- ErrorText
- Extensions
- FingerPrint
- FIPS
- HMacList
- Hostname
- KeepAlives
- KeyExchangeList
- KeySignatureList
- LastError
- ListItem
- LocalPath
- Login
- MaxTransferRate
- MyHostname
- MyIP
- Notification
- Password
- Port
- PrivateKey
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RemoteIdentification
- RemotePath
- Resume
- ServerErrorCode
- ServerErrorText
- State
- StateText
- Timeout
- Timezone
- TransferMode
- TransferRate
- TransferTime
- UseIPv6
- Version
- Events
- Methods
- IwodSFTPNotify
- SftpItem
- SftpItems
- How to get support?
- Technical information
- Fast notifications interface
- Error list
Connected method
Called when wodSFTP connects to a 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 IwodSFTPNotify. |
Owner | A wodSFTPCom object. |
ErrorCode | An Integer value. Error number, if error occurred. |
ErrorText | A String value. Text description of the error, if any. |
Remarks
This method is only called if you implemented the IwodSFTPNotify interface in your application and the wodSFTP.Notification property has received a reference to an instance of your implementation.The Connected notification method will always be called after the Connect method is issued. If wodSFTP 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 wodSFTP will immediately close the connection.
It is possible that wodSFTP will internally negotiate connection parameters before the Connected notification method is called. This is done to make wodSFTP as transparent as possible to the protocol used. You might notice packets being transmitted to/from the server while you are waiting for the Connected notification to be called. This means wodSFTP is connected already but is still negotiating protocol parameters.