RTEMS Logo

RTEMS 4.7.2 On-Line Library


Initializing FTPD (Starting the daemon)

PREV UP NEXT Bookshelf RTEMS Network Supplement

5.1.2: Initializing FTPD (Starting the daemon)

Starting FTPD is done with a call to rtems_initialize_ftpd(). The configuration structure must be provided in the application source code. Example hooks structure and configuration structure folllow.

struct rtems_ftpd_hook ftp_hooks[] =
   {
      {"untar", Untar_FromMemory},
      {NULL, NULL}
   };

struct rtems_ftpd_configuration rtems_ftpd_configuration =
   {
      40,                     /* FTPD task priority */
      512*1024,               /* Maximum hook 'file' size */
      0,                      /* Use default port */
      ftp_hooks               /* Local ftp hooks */
   };

Specifying 0 for the well-known port causes FTPD to use the UNIX standard FTPD port (21).


PREV UP NEXT Bookshelf RTEMS Network Supplement

Copyright © 1988-2004 OAR Corporation