wodFTPServer ActiveX Control - Connected Method
      
 

Description

Called when user connects using valid username.


Return Type

None  


Syntax

object.Connected Owner, User, Action



The Connected Method syntax has these parts:

Part Description
object An expression evaluating to an object of type wodFTPDNotify.
Owner A wodFTPDCom object. Reference to wodFTPServer instance that called this notification method.
User A FtpUser object. Reference to user who connected to the server.
Action A FtpActions enumeration, as described in settings. When set to Deny/SilentDeny, wodFTPServer denies this action.

Settings

The settings for Action are:

Constant Value Description
 Deny 0 Deny execution of the action.
 Allow 1 Allow to execute action.
 SilentDeny 2 Silently deny execution of the action.
 SilentAllow 3 Silently allow to execute action.

Remarks

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

Connected notification method is called when user successfully pass login stage, providing proper login/password (or certificate) information - which you already have accepted in LoginPassword or LoginCertificate notification methods. After this method is called, wodFTPServer is ready to serve files to the client.

It is not a good idea to assume that client connected successfully after you allow his connection in above methods (LoginPassword or LoginCertificate) because even if you set Action = Allow, it could be that both authentication types are required for proper login.