home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / MSDOS / NCSA / TEL2307S.ZIP / INCLUDE / FTPPI.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-05  |  4.4 KB  |  185 lines

  1. /*
  2. *
  3. *
  4. *      File Transfer Protocal (FTP) definitions
  5. *              (ftppi.c)
  6. *  
  7. *    National Center for Supercomputing Applications
  8. *      by Gaige B. Paulsen, additions by Quincey Koziol
  9. *
  10. *      This file contains the definitions of ftp related things.
  11. *
  12. *      Version Date    Notes
  13. *      ------- ------  ---------------------------------------------------
  14. *        2.2   ??????  NCSA Telnet 2.2 - GBP
  15. *        2.3   900527  NCSA Telnet 2.3 - QAK
  16. *
  17. */
  18.  
  19. #ifndef FTPPI_H
  20. #define FTPPI_H
  21.  
  22. #define NCMDS        51
  23.  
  24. #define    QMARK           1
  25. #define BANG         2
  26. #define ACCOUNT      3
  27. #define ASCII         4
  28. #define BELL         5
  29. #define BGET         6
  30. #define BINARY       7
  31. #define BPUT         8
  32. #define BYE           9
  33. #define CD           10
  34. #define CLOSE        11
  35. #define DEL         12
  36. #define DEBUG        13
  37. #define DIR          14
  38. #define GET          15
  39. #define GLOB         16
  40. #define HASH         17
  41. #define HELP         18
  42. #define INTERACTIVE 19
  43. #define LCD          20
  44. #define LLS            21
  45. #define LS            22
  46. #define MDELETE     23
  47. #define MDIR         24
  48. #define MGET         25
  49. #define MKDIR        26
  50. #define MLS          27
  51. #define MODE         28
  52. #define MORE        29
  53. #define MPUT         30
  54. #define NONINTERACTIVE 31
  55. #define OPEN         32
  56. #define PROMPT      33
  57. #define PUT          34
  58. #define PWD          35
  59. #define QUIT         36
  60. #define QUOTE        37
  61. #define RECV         38
  62. #define REMOTEHELP     39
  63. #define RENAME      40
  64. #define RM            41
  65. #define RMDIR        42
  66. #define SEND         43
  67. #define SENDPORT     44
  68. #define SITE        45
  69. #define SLASHFLIP     46
  70. #define STATUS      47
  71. #define STRUCT      48
  72. #define TYPE        49
  73. #define USER         50
  74. #define VERBOSE     51
  75.  
  76. static char *ftp_cmdlist[]={
  77.     "?",
  78.     "!",
  79.     "account",
  80.     "ascii",
  81.     "bell",
  82.     "bget",
  83.     "binary",
  84.     "bput",
  85.     "bye",
  86.     "cd",
  87.     "close",
  88.     "delete",
  89.     "debug",
  90.     "dir",
  91.     "get",
  92.     "glob",
  93.     "hash",
  94.     "help",
  95.     "interactive",
  96.     "lcd",
  97.     "lls",
  98.     "ls",
  99.     "mdelete",
  100.     "mdir",
  101.     "mget",
  102.     "mkdir",
  103.     "mls",
  104.     "mode",
  105.     "more",
  106.     "mput",
  107.     "noninteractive",
  108.     "open",
  109.     "prompt",
  110.     "put",
  111.     "pwd",
  112.     "quit",
  113.     "quote",
  114.     "recv",
  115.     "remotehelp",
  116.     "rename",
  117.     "rm",
  118.     "rmdir",
  119.     "send",
  120.     "sendport",
  121.     "site",
  122.     "slashflip",
  123.     "status",
  124.     "struct",
  125.     "type",
  126.     "user",
  127.     "verbose"
  128. };
  129.  
  130. static char *helpstrings[]={
  131.     "?        print local help information",
  132.     "!        escape to the shell",
  133.     "account    allows entering of account data",
  134.     "ascii         set ascii transfer type",
  135.     "bell          beep when command completed - toggle",
  136.     "bget        get a file in binary mode",
  137.     "binary        set binary transfer type",
  138.     "bput        put a file in binary mode",
  139.     "bye           terminate ftp session and exit",
  140.     "cd            change remote working directory",
  141.     "close         terminate ftp session",
  142.     "delete        delete remote file - inquires if prompting is on",
  143.     "debug         toggle/set debugging mode",
  144.     "dir           list contents of remote directory",
  145.     "get           receive file",
  146.     "glob          toggle metacharacter expansion of local file names",
  147.     "hash          toggle printing `#' for each buffer transferred",
  148.     "help          print local help information",
  149.     "interactive    turn on prompting for multiple commands",
  150.     "lcd           change local working directory",
  151.     "lls        list contents of local directory",
  152.     "ls            nlist contents of remote directory",
  153.     "mdelete       delete multiple files",
  154.     "mdir          list contents of multiple remote directories",
  155.     "mget          get multiple files",
  156.     "mkdir         make directory on the remote machine",
  157.     "mls           nlist contents of multiple remote directories",
  158.     "mode          set file transfer mode",
  159.     "more       toggle more mode",
  160.     "mput          send multiple files",
  161.     "noninteractive turn off prompting on multiple commands",
  162.     "open          connect to remote tftp",
  163.     "prompt        toggle interactive prompting on multiple commands",
  164.     "put           send one file",
  165.     "pwd           print working directory on remote machine",
  166.     "quit          terminate ftp session and exit",
  167.     "quote         send arbitrary ftp command",
  168.     "recv          receive file",
  169.     "remotehelp    get help from remote server",
  170.     "rename        rename file",
  171.     "rm        remove file",
  172.     "rmdir         remove directory on the remote machine",
  173.     "send          send one file",
  174.     "sendport      toggle use of PORT cmd for each data connection",
  175.     "site        site command for batch submissions",
  176.         "slashflip      toggle changing / to \\ on outgoing commands",
  177.     "status        show current status",
  178.     "struct        set file transfer structure",
  179.     "type          set file transfer type",
  180.     "user       send new user information",
  181.     "verbose       toggle verbose mode"
  182. };
  183.  
  184. #endif
  185.