Back to product page

Connected event


Fires when wodFtpDLX connects to remote server.

Syntax

  • Basic
Private Sub object_Connected()
The Connected(object,ErrorCode,ErrorText) syntax has these parts:
objectA wodFtpDLX object.
ErrorCodeA Long value. Represents error number for error that occurred, if any.
ErrorTextA String value. Represents text of error that occurred, if any.

Remarks

Connected event will be fired 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 event, but please note that in GUI version wodFtpDLX will immediately internally request to receive directory list of your home directory, and fire Done event 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