home *** CD-ROM | disk | FTP | other *** search
- /* ftp.h */
-
- #ifndef _ftp_h_
- #define _ftp_h_
-
- #define IS_FILE 1
- #define IS_STREAM 0
- #define IS_PIPE -1
-
- int hookup(char *host, int port);
- int login(char *, int, int);
- void cmdabort(int unused);
- int command(char *cmd);
- int getreply(int expecteof);
- void abortsend(int unused);
- void sendrequest(char *cmd, char *local, char *remote);
- void abortrecv(int unused);
- void recvrequest(char *cmd, char *local, char *remote, char *mode);
- int initconn(void);
- FILE *dataconn(char *mode);
- void ptransfer(char *direction, long bytes, struct timeval *t0, struct timeval *t1, char *local, char *remote);
- void close_file(FILE **fin, int filetype);
- long get_remote_size(char *remote, int filetype);
- void progress_report(void);
-
- #endif /* _ftp_h_ */
-
- /* eof ftp.h */
-