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 / ftp.h < prev    next >
C/C++ Source or Header  |  1995-10-01  |  2KB  |  68 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. /* Values sent to CommandWithFlags() to determine whether to read a reply
  24.  * from the remote host after sending the command.
  25.  */
  26. #define DONT_WAIT_FOR_REPLY 0
  27. #define WAIT_FOR_REPLY 1
  28.  
  29. /* Expect EOF values for getreply() */
  30. #define DONT_EXPECT_EOF        0
  31. #define EXPECT_EOF            1
  32.  
  33. int hookup(char *, unsigned int);
  34. int Login(char *userNamePtr, char *passWordPtr, char *accountPtr, int doInit);
  35. void cmdabort SIG_PARAMS;
  36. int CommandWithFlags(char *, int);
  37. int command(char *);
  38. int command_noreply(char *);
  39. int quiet_command(char *);
  40. int verbose_command(char *);
  41. int getreply(int);
  42. int start_progress(int, char *);
  43. int progress_report(int);
  44. void end_progress(char *, char *, char *);
  45. void close_file(FILE **, int);
  46. void abortsend SIG_PARAMS;
  47. int sendrequest(char *, char *, char *);
  48. void abortrecv SIG_PARAMS;
  49. void GetLSRemoteDir(char *, char *);
  50. int AdjustLocalFileName(char *);
  51. int SetToAsciiForLS(int, int);
  52. int IssueCommand(char *, char *);
  53. FILE *OpenOutputFile(int, char *, char *, Sig_t *);
  54. void ReceiveBinary(FILE *, FILE *, int *, char *);
  55. void AddRedirLine(char *);
  56. void ReceiveAscii(FILE *, FILE *, int *, char *, int);
  57. void CloseOutputFile(FILE *, int, char *, time_t);
  58. void ResetOldType(int);
  59. int FileType(char *);
  60. void CloseData(void);
  61. int recvrequest(char *, char *, char *, char *);
  62. int initconn(void);
  63. FILE *dataconn(char *);
  64.  
  65. #endif /* _ftp_h_ */
  66.  
  67. /* eof ftp.h */
  68.