/
Interface with RTOS

Interface with RTOS

µC/FTPs is executed as two tasks under a Real-Time Operating System (RTOS).

The first task is the server task listening on a socket (by default on TCP port 21) for clients. When a client connects, the control task is created and waits for client requests. This task receives, interprets, and executes the majority of the FTP commands. Currently, µC/FTPs supports one client connection at a time, so there is only one control task at a time. When the FTP client closes the connection, the socket is released, and the task is deleted.

µC/FTPs requires the presence of a Real Time Operating System (RTOS). As mentioned in Getting Started, µC/FTPs is delivered with ports for µC/OS-II and µC/OS-III, but it is possible for µC/FTPs to be used with another RTOS by providing appropriate implementations of ftp-s_os.*.