⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ftpd.h

📁 RTEMS (Real-Time Executive for Multiprocessor Systems) is a free open source real-time operating sys
💻 H
字号:
/* *  FTP Server Information * *  $Id: ftpd.h,v 1.4 2001/01/24 19:20:24 joel Exp $ */#ifndef __FTPD_H__#define __FTPD_H__#define FTPD_CONTROL_PORT   21/* FTPD access control flags */enum{  FTPD_NO_WRITE = 0x1,  FTPD_NO_READ  = 0x2,  FTPD_NO_RW    = FTPD_NO_WRITE | FTPD_NO_READ};typedef int (*rtems_ftpd_hookfunction)(unsigned char *, unsigned long);struct rtems_ftpd_hook{   char                    *filename;   rtems_ftpd_hookfunction hook_function;};struct rtems_ftpd_configuration{   rtems_task_priority     priority;           /* FTPD task priority  */   unsigned long           max_hook_filesize;  /* Maximum buffersize  */                                               /*    for hooks        */   int                     port;               /* Well-known port     */   struct rtems_ftpd_hook  *hooks;             /* List of hooks       */   char const              *root;              /* Root for FTPD or 0 for / */   int                     tasks_count;        /* Max. connections    */   int                     idle;               /* Idle timeout in seoconds                                                  or 0 for no (inf) timeout */   int                     access;             /* 0 - r/w, 1 - read-only,                                                  2 - write-only,                                                  3 - browse-only */};/* * Reply codes. */#define PRELIM          1       /* positive preliminary */#define COMPLETE        2       /* positive completion */#define CONTINUE        3       /* positive intermediate */#define TRANSIENT       4       /* transient negative completion */#define ERROR           5       /* permanent negative completion */int rtems_initialize_ftpd();#endif  /* __FTPD_H__ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -