home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume40 / ncftp / part06 / open.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-11-02  |  1.2 KB  |  46 lines

  1. /* open.h */
  2.  
  3. #ifndef _open_h_
  4. #define _open_h_ 1
  5.  
  6. /* Variables for Open() that can be changed from the command line. */
  7. typedef struct OpenOptions {
  8.     int                openmode;
  9.     int                ignore_rc;
  10.     unsigned int    port;
  11.     int                redial_delay;
  12.     int                max_dials;
  13.     int                ftpcat;
  14.     Hostname        hostname;
  15.     longstring        cdpath;
  16.     longstring        colonmodepath;
  17. } OpenOptions;
  18.  
  19. /* Open modes. */
  20. #define openImplicitAnon 1
  21. #define openImplicitUser 4
  22. #define openExplicitAnon 3
  23. #define openExplicitUser 2
  24.  
  25. #define ISUSEROPEN(a) ((a==openImplicitUser)||(a==openExplicitUser))
  26. #define ISANONOPEN(a) (!ISUSEROPEN(a))
  27. #define ISEXPLICITOPEN(a) ((a==openExplicitAnon)||(a==openExplicitUser))
  28. #define ISIMPLICITOPEN(a) (!ISEXPLICITOPEN(a))
  29.  
  30. /* ftpcat modes. */
  31. #define NO_FTPCAT    0
  32. #define FTPCAT        1
  33. #define FTPMORE        2
  34.  
  35. /* Protos: */
  36. void InitOpenOptions(OpenOptions *openopt);
  37. int GetOpenOptions(int argc, char **argv, OpenOptions *openopt);
  38. int CheckForColonMode(OpenOptions *openopt, int *login_verbosity);
  39. int HookupToRemote(OpenOptions *openopt);
  40. void CheckRemoteSystemType(int);
  41. void ColonMode(OpenOptions *openopt);
  42. int Open(OpenOptions *openopt);
  43. int cmdOpen(int argc, char **argv);
  44.  
  45. #endif    /* _open_h_ */
  46.