Back to product page

Connected method


Called when wodFtpDLX connects to remote server.

Type

None

Syntax

  • Basic
object.ConnectedOwner, ErrorCode, ErrorText
The Connected(object,Owner,ErrorCode,ErrorText) syntax has these parts:
objectAn expression evaluating to an object of type IwodFtpNotify.
OwnerRequired. A wodFtpDLXCom object.
ErrorCodeRequired. A Long value. Error number that occurred, if any.
ErrorTextRequired. A String value. Text description of the error, if any.

Remarks

This method is called only if you implemented IwodFtpNotify interface in your application, and wodFtpDLX.Notification property has received reference to instance of your implementation.

Connected notification method will be called always after Connect method is issued. If wodFtpDLX successfully connected to server, ErrorCode will be set to 0, and you can start sending/receiving data from server. If ErrorCode is different than 0, then wodFtpDLX will immidiatelly close the connection.

It is possible that wodFtpDLX will internally negotiate connection parameters, before Connected event is fired at all. This is done to make wodFtpDLX as much transparent to protocol used as possible. You might notice packets transmitted to/from server in the meantime, meaning wodFtpDLX connected already but is still negotiating protocol parameters.

You can put your code inside this notification method, but please note that in GUI version wodFtpDLX will immediately internally request to receive directory list of your home directory, and call Done notification after that. It is advised NOT to execute any other methods for interaction with the protocol. This does not apply to windowless (COM object) version.

Platforms

Windows