wodFtpDLX ActiveX Control - Connected Method (wodFtpDLXCom)
      
 

Description

Called when wodFtpDLX connects to remote server.


Return Type

None  


Syntax

object.Connected Owner, ErrorCode, ErrorText



The Connected Method syntax has these parts:

Part Description
object An expression evaluating to an object of type IwodFtpNotify.
Owner Required. A wodFtpDLXCom object.
ErrorCode Required. A Long value. Error number that occurred, if any.
ErrorText Required. 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.