Description
-
Fires when user connects using valid username.
Syntax
-
Private Sub
object_Connected(User,
Action)
The Connected Event syntax has these parts:
| object |
A wodFTPD object. |
| 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:
 |
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
-
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.
|