home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume34 / ncftp / part03 / ftp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-08  |  747 b   |  29 lines

  1. /* ftp.h */
  2.  
  3. #ifndef _ftp_h_
  4. #define _ftp_h_
  5.  
  6. #define IS_FILE 1
  7. #define IS_STREAM 0
  8. #define IS_PIPE -1
  9.  
  10. int hookup(char *host, int port);
  11. int login(char *, int, int);
  12. void cmdabort(int unused);
  13. int command(char *cmd);
  14. int getreply(int expecteof);
  15. void abortsend(int unused);
  16. void sendrequest(char *cmd, char *local, char *remote);
  17. void abortrecv(int unused);
  18. void recvrequest(char *cmd, char *local, char *remote, char *mode);
  19. int initconn(void);
  20. FILE *dataconn(char *mode);
  21. void ptransfer(char *direction, long bytes, struct timeval *t0, struct timeval *t1, char *local, char *remote);
  22. void close_file(FILE **fin, int filetype);
  23. long get_remote_size(char *remote, int filetype);
  24. void progress_report(void);
  25.  
  26. #endif /* _ftp_h_ */
  27.  
  28. /* eof ftp.h */
  29.