aboutsummaryrefslogtreecommitdiff
path: root/lib/download.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-02-01 23:51:01 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-02-01 23:51:01 +0000
commitd2af77e60c321431e6673bc1cad2f71e7d5feb64 (patch)
tree093cfe22cac16e48e3e33f42a3b6b22db87df362 /lib/download.h
parenta96c6e96939c1b8dd93c68ed973b8be133741b77 (diff)
Download() was merged with Upload() and now they both form the new Transfer()
function that deals with both directions at the same time.
Diffstat (limited to 'lib/download.h')
-rw-r--r--lib/download.h9
1 files changed, 6 insertions, 3 deletions
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