Back to product page

Connected event


Fires when user connects using valid username.

Syntax

  • Basic
Private Sub object_Connected(User, Action)
The Connected(object,User,Action) syntax has these parts:
objectAn expression evaluating to an object of type wodFTPD.
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

Connected event is fired when user successfully pass login stage, providing proper login/password (or certificate) information - which you already have accepted in LoginPassword or LoginCertificate events. After this event is fired, 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 events (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