summaryrefslogtreecommitdiff
path: root/ftp.h
diff options
context:
space:
mode:
authorroot <devnull@localhost>1996-03-29 01:19:10 +0000
committerroot <devnull@localhost>1996-03-29 01:19:10 +0000
commit502e34e500e1ea7ecc33efd1c13848d934e51000 (patch)
treee61f45c635b4350ca185273d6047b209d9ae621d /ftp.h
parenta1a51786da7672587e33562f1dc708dfacd20095 (diff)
downloadrpm-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.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/ftp.h b/ftp.h
index ed15704b5..325c9bd5c 100644
--- a/ftp.h
+++ b/ftp.h
@@ -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);