OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [libnetworking/] [rtems_servers/] [ftpd.h] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
2
 *  FTP Server Information
3
 *
4
 *  $Id: ftpd.h,v 1.2 2001-09-27 12:02:00 chris Exp $
5
 */
6
 
7
#ifndef __FTPD_H__
8
#define __FTPD_H__
9
 
10
 
11
#define FTPD_CONTROL_PORT   21
12
 
13
typedef int (*rtems_ftpd_hookfunction)(unsigned char *, unsigned long);
14
 
15
struct rtems_ftpd_hook
16
{
17
   char                    *filename;
18
   rtems_ftpd_hookfunction hook_function;
19
};
20
 
21
struct 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
 
39
int rtems_initialize_ftpd();
40
 
41
#endif  /* __FTPD_H__ */
42
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.