ftp.h
资源名称:export.zip [点击查看]
上传用户:hepax88
上传日期:2007-01-03
资源大小:1101k
文件大小:1k
源码类别:
TCP/IP协议栈
开发平台:
Visual C++
- #ifndef _FTP_H
- #define _FTP_H
- /* Definitions common to both FTP servers and clients */
- enum ftp_type {
- ASCII_TYPE,
- IMAGE_TYPE,
- LOGICAL_TYPE
- };
- /* Verbosity levels for sendfile and recvfile in ftpsubr.c */
- enum verb_level {
- V_QUIET, /* Error messages only */
- V_SHORT, /* Final message only */
- V_NORMAL, /* display control messages */
- V_HASH, /* control messages, hash marks */
- V_STAT /* Full-blown status display */
- };
- /* In ftpsubr.c: */
- long sendfile(FILE *fp,FILE *network,enum ftp_type mode,enum verb_level verb);
- long recvfile(FILE *fp,FILE *network,enum ftp_type mode,enum verb_level verb);
- int isbinary(FILE *fp);
- int md5hash(FILE *fp,uint8 hash[16],int ascii);
- #endif /* _FTP_H */