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