source: rtems/cpukit/ftpd/ftpd.h @ 4bf1801

4.104.114.84.95
Last change on this file since 4bf1801 was 85e24a3, checked in by Joel Sherrill <joel.sherrill@…>, on 04/02/99 at 14:39:19

Patch from Emmanuel Rauget (raguet@…) to add a htons on the
sin_port.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 *  FTP Server Information
3 *
4 *  $Id$
5 */
6
7#ifndef __FTPD_H__
8#define __FTPD_H__
9
10
11#define FTPD_CONTROL_PORT   21
12
13typedef int (*rtems_ftpd_hookfunction)(unsigned char *, unsigned long);
14
15struct rtems_ftpd_hook
16{
17   char                    *filename;
18   rtems_ftpd_hookfunction hook_function;
19};
20
21struct rtems_ftpd_configuration
22{
23   rtems_task_priority     priority;           /* FTPD task priority  */
24   unsigned long           max_hook_filesize;  /* Maximum buffersize  */
25                                               /*    for hooks        */
26   int                     port;               /* Well-known port     */
27   struct rtems_ftpd_hook  *hooks;             /* List of hooks       */
28};
29
30/*
31 * Reply codes.
32 */
33#define PRELIM          1       /* positive preliminary */
34#define COMPLETE        2       /* positive completion */
35#define CONTINUE        3       /* positive intermediate */
36#define TRANSIENT       4       /* transient negative completion */
37#define ERROR           5       /* permanent negative completion */
38
39int rtems_initialize_ftpd();
40
41#endif  /* __FTPD_H__ */
42
Note: See TracBrowser for help on using the repository browser.