From d2af77e60c321431e6673bc1cad2f71e7d5feb64 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 1 Feb 2000 23:51:01 +0000 Subject: Download() was merged with Upload() and now they both form the new Transfer() function that deals with both directions at the same time. --- lib/download.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lib/download.h') diff --git a/lib/download.h b/lib/download.h index e8ca82add..414085df4 100644 --- a/lib/download.h +++ b/lib/download.h @@ -40,11 +40,14 @@ * ------------------------------------------------------------ ****************************************************************************/ UrgError -Download (struct UrlData *data, - int sockfd, /* socket to read from */ +Transfer (struct UrlData *data, + int sockfd, /* socket to read from or -1 */ int size, /* -1 if unknown at this point */ bool getheader, /* TRUE if header parsing is wanted */ - long *bytecountp /* return number of bytes read */ + long *bytecountp, /* return number of bytes read */ + int writesockfd, /* socket to write to, it may very well be + the same we read from. -1 disables */ + long *writebytecountp /* return number of bytes written */ ); #endif -- cgit v1.2.3