home *** CD-ROM | disk | FTP | other *** search
/ ftp.ncftp.com / ftp.ncftp.com.zip / ftp.ncftp.com / ncftp / ncftp-1.9.5.tar.gz / ncftp-1.9.5.tar / ncftp-1.9.5 / open.h < prev    next >
C/C++ Source or Header  |  1995-10-01  |  1KB  |  51 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. typedef struct RemoteSiteInfo {
  20.     int                hasSIZE;
  21.     int                hasMDTM;
  22. } RemoteSiteInfo;
  23.  
  24. /* Open modes. */
  25. #define openImplicitAnon 1
  26. #define openImplicitUser 4
  27. #define openExplicitAnon 3
  28. #define openExplicitUser 2
  29.  
  30. #define ISUSEROPEN(a) ((a==openImplicitUser)||(a==openExplicitUser))
  31. #define ISANONOPEN(a) (!ISUSEROPEN(a))
  32. #define ISEXPLICITOPEN(a) ((a==openExplicitAnon)||(a==openExplicitUser))
  33. #define ISIMPLICITOPEN(a) (!ISEXPLICITOPEN(a))
  34.  
  35. /* ftpcat modes. */
  36. #define NO_FTPCAT    0
  37. #define FTPCAT        1
  38. #define FTPMORE        2
  39.  
  40. /* Protos: */
  41. void InitOpenOptions(OpenOptions *openopt);
  42. int GetOpenOptions(int argc, char **argv, OpenOptions *openopt);
  43. int CheckForColonMode(OpenOptions *openopt, int *login_verbosity);
  44. int HookupToRemote(OpenOptions *openopt);
  45. void CheckRemoteSystemType(int);
  46. void ColonMode(OpenOptions *openopt);
  47. int Open(OpenOptions *openopt);
  48. int cmdOpen(int argc, char **argv);
  49.  
  50. #endif    /* _open_h_ */
  51.