/* ftppi.h */ #ifndef FTPPI_H #define NCMDS 60 #define QMARK 1 #define ASCII 2 #define BELL 3 #define BGET 4 #define BINARY 5 #define BPUT 6 #define BYE 7 #define CD 8 #define CLOSE 9 #define DEBUG 10 #define DEL 11 #define DIR 12 #define GET 13 #define HASH 14 #define HELP 15 #define HOME 16 #define INTERACTIVE 17 #define LCD 18 #define LDELETE 19 #define LDIR 20 #define LLS 21 #define LMKDIR 22 #define LPROTECT 23 #define LPWD 24 #define LRENAME 25 #define LRMDIR 26 #define LS 27 #define LTYPE 28 #define LUNPROTECT 29 #define MDELETE 30 #define MDIR 31 #define MGET 32 #define MKDIR 33 #define MLS 34 #define MODE 35 #define MPUT 36 #define NONINTERACTIVE 37 #define OPEN 38 #define PROMPT 39 #define PROTECT 40 #define PUT 41 #define PWD 42 #define QUIT 43 #define QUOTE 44 #define RECV 45 #define REMOTEHELP 46 #define RENAME 47 #define RM 48 #define RMDIR 49 #define SEND 50 #define SENDPORT 51 #define STATUS 52 #define STRUCT 53 #define SYSTEM 54 #define TYPE 55 #define UNPROTECT 56 #define USER 57 #define VERBOSE 58 #define VERSION 59 #define WILD 60 static char *ftp_cmdlist[]={ "?", "ascii", "bell", "bget", "binary", "bput", "bye", "cd", "close", "debug", "delete", "dir", "get", "hash", "help", "home", "interactive", "lcd", "ldelete", "ldir", "lls", "lmkdir", "lprotect", "lpwd", "lrename", "lrmdir", "ls", "ltype", "lunprotect", "mdelete", "mdir", "mget", "mkdir", "mls", "mode", "mput", "noninteractive", "open", "prompt", "protect", "put", "pwd", "quit", "quote", "recv", "remotehelp", "rename", "rm", "rmdir", "send", "sendport", "status", "struct", "system", "type", "unprotect", "user", "verbose", "version", "wild" }; /* * The following helpstring text must be * copied to sy: as ftpcmd.txt */ #ifdef FTPCMDTXT /* ftpcmd.txt */ ? print local help information ascii set ascii transfer type bell toggle command completed beep bget get a file in binary mode binary set binary transfer type bput put a file in binary mode bye terminate ftp session and exit cd change remote working directory close terminate ftp session debug toggle/set debugging mode delete delete remote file - inquires if prompting is on dir list contents of remote directory get receive file hash toggle printing `#' for each 1024 bytes transferred help print local help information home set default directory to home interactive turn on prompting for multiple commands lcd change local working directory ldelete delete local files ldir list contents of local directory lls list contents of local directory lmkdir make a local directory lprotect set protection flag on local file lpwd show local working directory lrename rename a local file lrmdir remove a local directory ls list contents of remote directory ltype print a local file to the screen lunprotect clear protection flag on a local file mdelete delete multiple files mdir list contents of multiple remote directories mget get multiple files mkdir make directory on the remote machine mls list contents of multiple remote directories mode set file transfer mode mput send multiple files noninteractive turn off prompting on multiple commands open connect to remote ftp prompt toggle interactive prompting on multiple commands protect set protection flag on file put send one file pwd print working directory on remote machine quit terminate ftp session and exit quote send arbitrary ftp command recv receive file remotehelp get help from remote server rename rename remote file rm delete remote file rmdir remove directory on the remote machine send send one file sendport toggle use of PORT cmd for each data connection status show current status struct set file transfer structure system query remote system type type print a remote file to the screen unprotect clear protection flag on file user send new user information verbose toggle verbose mode version FTP-11 version displayed wild toggle wildcard expansion of local file names > redirect remote response to specified file #endif #define FTPPI_H #endif