diff options
author | root <devnull@localhost> | 1996-03-29 01:19:10 +0000 |
---|---|---|
committer | root <devnull@localhost> | 1996-03-29 01:19:10 +0000 |
commit | 502e34e500e1ea7ecc33efd1c13848d934e51000 (patch) | |
tree | e61f45c635b4350ca185273d6047b209d9ae621d /ftp.h | |
parent | a1a51786da7672587e33562f1dc708dfacd20095 (diff) | |
download | rpm-502e34e500e1ea7ecc33efd1c13848d934e51000.tar.gz rpm-502e34e500e1ea7ecc33efd1c13848d934e51000.tar.bz2 rpm-502e34e500e1ea7ecc33efd1c13848d934e51000.zip |
added verbose error checking
CVS patchset: 488
CVS date: 1996/03/29 01:19:10
Diffstat (limited to 'ftp.h')
-rw-r--r-- | ftp.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1,6 +1,17 @@ #ifndef H_FTP #define H_FTP +const char * ftpStrerror(int ftpErrno); + +#define FTPERR_BAD_SERVER_RESPONSE -1 +#define FTPERR_SERVER_IO_ERROR -2 +#define FTPERR_SERVER_TIMEOUT -3 +#define FTPERR_BAD_HOST_ADDR -4 +#define FTPERR_BAD_HOSTNAME -5 +#define FTPERR_FAILED_CONNECT -6 +#define FTPERR_FILE_IO_ERROR -7 +#define FTPERR_UNKNOWN -8 + int ftpOpen(char * host, char * name, char * password); int ftpGetFile(int sock, char * remotename, int dest); void ftpClose(int sock); |