The ftp_evt_notify notifies the user application about
events in FTP server. This function is useful to synchronize various
actions, such as firmware upgrade, to FTP server events. The firmware
upgrade might start, after the FTP_EVT_LOGOUT event is signaled and a
new firmware image file has been uploaded to the server.
The ftp_evt_notify is in FTP_uif.c module. The prototype is
defined in rtl.h.
note
This function is optional. It is not required for normal FTP
server operation.
Return Value
The ftp_evt_notify function does not return any value.
Example
void ftp_evt_notify (U8 evt) {
/* Notify the user application about events in FTP server.*/
switch (evt) {
case FTP_EVT_LOGIN:
/* User logged in, FTP session is busy. */
break;
case FTP_EVT_LOGOUT;
/* User logged out, session is idle. */
break;
case FTP_EVT_LOGFAIL:
/* User login failed (invalid credentials). */
break;
case FTP_EVT_DOWNLOAD:
/* File download ended. */
break;
case FTP_EVT_UPLOAD:
/* File upload ended. */
break;
case FTP_EVT_DELETE:
/* File deleted. */
break;
case FTP_EVT_RENAME:
/* File or directory renamed. */
break;
case FTP_EVT_MKDIR:
/* Directory created. */
break;
case FTP_EVT_RMDIR:
/* Directory removed. */
break;
case FTP_EVT_ERRLOCAL:
/* Local file operation error. */
break;
case FTP_EVT_DENIED:
/* Requested file operation denied. */
break;
case FTP_EVT_ERROR:
/* Generic file operation or protocol error. */
break;
}
}
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.