Back to product page

Connected notification


Called when user connects using valid username.

Syntax

  • Basic
object.Connected Owner, User, Action
The Connected(object,Owner,User,Action) syntax has these parts:
objectAn expression evaluating to an object of type wodFTPDNotify.
OwnerA wodFTPDCom object. Reference to wodFTPServer instance that called this notification method.
UserA FtpUser object. Reference to user who connected to the server.
ActionA FtpActions enumeration, as described in settings. When set to Deny/SilentDeny, wodFTPServer denies this 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.

The settings for Action are
Constant Value Description
Deny0 Deny execution of the action.
Allow 1 Allow to execute action.
SilentDeny2 Silently deny execution of the action.
SilentAllow 3 Silently allow to execute action.

Platforms

Windows