home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 4 / CDPD_IV.bin / networking / tcpip / amitcp-support / ncftp-1.5.6 / src / rcs / open.h,v < prev    next >
Encoding:
Text File  |  1994-06-29  |  1.3 KB  |  69 lines

  1. head    1.1;
  2. access;
  3. symbols;
  4. locks; strict;
  5. comment    @ * @;
  6.  
  7.  
  8. 1.1
  9. date    93.10.10.20.01.18;    author alph;    state Exp;
  10. branches;
  11. next    ;
  12.  
  13.  
  14. desc
  15. @@
  16.  
  17.  
  18. 1.1
  19. log
  20. @Initial revision
  21. @
  22. text
  23. @/* open.h */
  24.  
  25. #ifndef _open_h_
  26. #define _open_h_ 1
  27.  
  28. /* Variables for Open() that can be changed from the command line. */
  29. typedef struct OpenOptions {
  30.     int                openmode;
  31.     int                ignore_rc;
  32.     unsigned int    port;
  33.     int                redial_delay;
  34.     int                max_dials;
  35.     int                ftpcat;
  36.     Hostname        hostname;
  37.     longstring        cdpath;
  38.     longstring        colonmodepath;
  39. } OpenOptions;
  40.  
  41. /* Open modes. */
  42. #define openImplicitAnon 1
  43. #define openImplicitUser 4
  44. #define openExplicitAnon 3
  45. #define openExplicitUser 2
  46.  
  47. #define ISUSEROPEN(a) ((a==openImplicitUser)||(a==openExplicitUser))
  48. #define ISANONOPEN(a) (!ISUSEROPEN(a))
  49. #define ISEXPLICITOPEN(a) ((a==openExplicitAnon)||(a==openExplicitUser))
  50. #define ISIMPLICITOPEN(a) (!ISEXPLICITOPEN(a))
  51.  
  52. /* ftpcat modes. */
  53. #define NO_FTPCAT    0
  54. #define FTPCAT        1
  55. #define FTPMORE        2
  56.  
  57. /* Protos: */
  58. void InitOpenOptions(OpenOptions *openopt);
  59. int GetOpenOptions(int argc, char **argv, OpenOptions *openopt);
  60. int CheckForColonMode(OpenOptions *openopt, int *login_verbosity);
  61. int HookupToRemote(OpenOptions *openopt);
  62. void CheckRemoteSystemType(int);
  63. void ColonMode(OpenOptions *openopt);
  64. int Open(OpenOptions *openopt);
  65. int cmdOpen(int argc, char **argv);
  66.  
  67. #endif    /* _open_h_ */
  68. @
  69.