home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume39 / ncftp / part05 / ftp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-25  |  1.3 KB  |  56 lines

  1. /* ftp.h */
  2.  
  3. #ifndef _ftp_h_
  4. #define _ftp_h_
  5.  
  6. /*  $RCSfile: ftp.h,v $
  7.  *  $Revision: 14020.11 $
  8.  *  $Date: 93/07/09 11:04:12 $
  9.  */
  10.  
  11. #define IS_FILE 1
  12. #define IS_STREAM 0
  13. #define IS_PIPE -1
  14.  
  15. /* Progress-meter types. */
  16. #define pr_none 0
  17. #define pr_percent 1
  18. #define pr_philbar 2
  19. #define pr_kbytes 3
  20. #define pr_dots 4
  21. #define pr_last pr_dots
  22.  
  23. int hookup(char *, unsigned int);
  24. int Login(char *userNamePtr, char *passWordPtr, char *accountPtr, int doInit);
  25. void cmdabort SIG_PARAMS;
  26. int command(char *);
  27. int quiet_command(char *);
  28. int verbose_command(char *);
  29. int getreply(int);
  30. int start_progress(int, char *);
  31. int progress_report(int);
  32. void end_progress(char *, char *, char *);
  33. void close_file(FILE **, int);
  34. void abortsend SIG_PARAMS;
  35. int sendrequest(char *, char *, char *);
  36. void abortrecv SIG_PARAMS;
  37. void GetLSRemoteDir(char *, char *);
  38. int AdjustLocalFileName(char *);
  39. int SetToAsciiForLS(int, int);
  40. int IssueCommand(char *, char *);
  41. FILE *OpenOutputFile(int, char *, char *, sig_t *);
  42. void ReceiveBinary(FILE *, FILE *, int *, char *);
  43. void AddRedirLine(char *);
  44. void ReceiveAscii(FILE *, FILE *, int *, char *, int);
  45. void CloseOutputFile(FILE *, int, char *, time_t);
  46. void ResetOldType(int);
  47. int FileType(char *);
  48. void CloseData(void);
  49. int recvrequest(char *, char *, char *, char *);
  50. int initconn(void);
  51. FILE *dataconn(char *);
  52.  
  53. #endif /* _ftp_h_ */
  54.  
  55. /* eof ftp.h */
  56.