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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [libnetworking/] [rtems_servers/] [ftpd.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*
2
 *  FTP Server Information
3
 *
4
 *  ftpd.h,v 1.4 2001/01/24 19:20:24 joel Exp
5
 */
6
 
7
#ifndef __FTPD_H__
8
#define __FTPD_H__
9
 
10
 
11
#define FTPD_CONTROL_PORT   21
12
 
13
/* FTPD access control flags */
14
enum
15
{
16
  FTPD_NO_WRITE = 0x1,
17
  FTPD_NO_READ  = 0x2,
18
  FTPD_NO_RW    = FTPD_NO_WRITE | FTPD_NO_READ
19
};
20
 
21
typedef int (*rtems_ftpd_hookfunction)(unsigned char *, unsigned long);
22
 
23
struct rtems_ftpd_hook
24
{
25
   char                    *filename;
26
   rtems_ftpd_hookfunction hook_function;
27
};
28
 
29
struct rtems_ftpd_configuration
30
{
31
   rtems_task_priority     priority;           /* FTPD task priority  */
32
   unsigned long           max_hook_filesize;  /* Maximum buffersize  */
33
                                               /*    for hooks        */
34
   int                     port;               /* Well-known port     */
35
   struct rtems_ftpd_hook  *hooks;             /* List of hooks       */
36
   char const              *root;              /* Root for FTPD or 0 for / */
37
   int                     tasks_count;        /* Max. connections    */
38
   int                     idle;               /* Idle timeout in seoconds
39
                                                  or 0 for no (inf) timeout */
40
   int                     access;             /* 0 - r/w, 1 - read-only,
41
                                                  2 - write-only,
42
                                                  3 - browse-only */
43
};
44
 
45
/*
46
 * Reply codes.
47
 */
48
#define PRELIM          1       /* positive preliminary */
49
#define COMPLETE        2       /* positive completion */
50
#define CONTINUE        3       /* positive intermediate */
51
#define TRANSIENT       4       /* transient negative completion */
52
#define ERROR           5       /* permanent negative completion */
53
 
54
int rtems_initialize_ftpd();
55
 
56
#endif  /* __FTPD_H__ */
57
 

powered by: WebSVN 2.1.0

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