CFtpServer Event Constants  
 
Value Description
FTP_CLIENT_CONNECT The client has established the initial control connection with the server. This is the first event that will occur after a connection attempt. For more information, refer to the OnConnect event handler.
FTP_CLIENT_DISCONNECT The control channel to the client has been closed. This event will occur when the client disconnects from the server or when the server terminates the connection to the client by calling the DisconnectClient method. For more information, refer to the OnDisconnect event handler.
FTP_CLIENT_TIMEOUT The client has exceeded the idle timeout period that was specified for the client session. This event occurs prior to the server disconnecting the client. For more information, refer to the OnTimeout event handler.
FTP_CLIENT_COMMAND The client has sent a command to the server. This event occurs after the command has been received from the client, but prior to the command being executed. For more information, refer to the OnCommand event handler.
FTP_CLIENT_RESULT The server has processed the command issued by the client and the result is available. This event occurs after the command has been executed and the response has been sent to the client. For more information, refer to the OnResult event handler.
FTP_CLIENT_USERAUTH The client has requested authentication by sending the USER and PASS commands. This event occurs after the client has connected, but before it has logged in to the server. Prior to authentication, client access to the server is restricted. For more information, refer to the OnAuthenticate event handler.
FTP_CLIENT_LOGIN The client has successfully logged in to the server with a valid username and password. This is an advisory event that occurs after the user has been authenticated. For more information, refer to the OnLogin event handler.
FTP_CLIENT_LOGOUT The client has either terminated its session by sending the QUIT command or has reinitialized its session by sending the REIN command. This is an advisory event that occurs after the client has logged out from the server. For more information, refer to the OnLogout event handler.
FTP_CLIENT_DOWNLOAD The client has successfully downloaded a file from the server using the RETR command. If the file transfer fails or is aborted, this event will not be generated. For more information, refer to the OnDownload event handler.
FTP_CLIENT_UPLOAD The client has successfully uploaded a file to the server using the APPE, STOR or STOU command. If the file transfer fails or is aborted, this event will not be generated. For more information, refer to the OnUpload event handler.
FTP_CLIENT_EXECUTE The client has successfully executed a program on the server using the SITE EXEC command. This is an advisory event that occurs after the program or script has completed execution. For more information, refer to the OnExecute event handler.

See Also