home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Networking / ncftp-2.4.2-MIHS / src / Get.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-21  |  1.4 KB  |  58 lines

  1. /* Get.h */
  2.  
  3. #ifndef _get_h_
  4. #define _get_h_ 1
  5.  
  6. #ifndef _xfer_h_
  7. #include "Xfer.h"
  8. #endif
  9.  
  10. /* Parameter for DoGet. */
  11. #define kSaveToDisk        0
  12. #define kDumpToStdout    1
  13.  
  14. /* Value of a user-configurable variable which determines if
  15.  * we try to restore the correct file time.
  16.  */
  17. #define kDontUTime        0
  18. #define kDoUTime        1
  19.  
  20. typedef struct GetOptions {
  21.     int recursive;
  22.     int noGlob;
  23.     int newer;
  24.     int overwrite;
  25.     int forceReget;
  26.     int saveAs;
  27.     int outputMode;    /* Dumping to the screen or saving to disk? */
  28.     int doUTime;
  29.     int doReports;
  30.     char *rName;    /* This is required to be set. */
  31.     char *lName;    /* This is optional.  If set, we use this name,
  32.                      * otherwise we will make up a name, based on the rName.
  33.                      */
  34. } GetOptions, *GetOptionsPtr;
  35.  
  36. /* Get.c */
  37. int BinaryGet(XferSpecPtr);
  38. int AsciiGet(XferSpecPtr);
  39. void SetLocalFileTimes(int, time_t, char *);
  40. int TruncReOpenReceiveFile(XferSpecPtr);
  41. int DoGet(GetOptionsPtr);
  42. void InitGetOutputMode(GetOptionsPtr, int);
  43. void InitGetOptions(GetOptionsPtr);
  44. int SetGetOption(GetOptionsPtr, int, char *);
  45. int GetGetOptions(int, char **, GetOptionsPtr);
  46. int GetDir(GetOptionsPtr, char *, char *, char *);
  47. int RemoteFileType(char *);
  48. int DoGetWithGlobbingAndRecursion(GetOptionsPtr);
  49. int GetCmd(int, char **);
  50. int CatFileToScreenProc(XferSpecPtr);
  51. int DoCat(char *);
  52. int MakePageCmdLine(char *, size_t, char *);
  53. int DoPage(char *);
  54. int PageCmd(int, char **);
  55. int CatCmd(int, char **);
  56.  
  57. #endif    /* _get_h_ */
  58.