Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

ftpd.h

00001 #ifndef _FTPD_H_
00002 #define _FTPD_H_
00003 
00004 #include <sys/socket.h>
00005 #include <sys/thread.h>
00012 /*
00013  * State of ftp session.
00014  */
00015 #define S_CLOSE 0 
00016 /*
00017  * State of ftp session.
00018  */
00019 #define S_USER 1 
00020 /*
00021  * State of ftp session.
00022  */
00023 #define S_PASS 2 
00024 /*
00025  * State of ftp session.
00026  */
00027 #define S_IDLE 3 
00028 
00029 /*
00030  * FTP command sen by ftp client
00031  */
00032 #define USER 1
00033 /*
00034  * FTP command sen by ftp client
00035  */
00036 #define PASS 2
00037 /*
00038  * FTP command sen by ftp client
00039  */
00040 #define QUIT 3
00041 /*
00042  * FTP command sen by ftp client
00043  */
00044 #define TYPE 4
00045 /*
00046  * FTP command sen by ftp client
00047  */
00048 #define SYST 5
00049 /*
00050  * FTP command sen by ftp client
00051  */
00052 #define PWD  6
00053 /*
00054  * FTP command sen by ftp client
00055  */
00056 #define LIST 7
00057 /*
00058  * FTP command sen by ftp client
00059  */
00060 #define PORT 8
00061 /*
00062  * FTP command sen by ftp client
00063  */
00064 #define RETR 9
00065 /*
00066  * FTP command sen by ftp client
00067  */
00068 #define STOR 10
00069 /*
00070  * FTP command sen by ftp client
00071  */
00072 #define DELE 11
00073 /*
00074  * FTP command sen by ftp client
00075  */
00076 #define NLST 12
00077 
00078 /*
00079  * Transmision type set by client.
00080  */
00081 #define ASCII 1
00082 /*
00083  * Transmision type set by client.
00084  */
00085 #define BIN 2
00086 
00096 extern int ftpProcess(u_char id, TCPSOCKET* sock);
00097 
00102 extern THREAD(ServiceFtpd, arg);
00103 
00108 extern void createFtpService(int threadNumber);
00109 
00115 extern int FtpLoadConfig(void);
00116 
00122 extern int FtpSaveConfig(void);
00123 
00127 #endif

Generated on Thu Jan 30 22:30:45 2003 for EduNet by doxygen1.2.18