From ce5805a955c5a79d85792caad47594987f0e0b26 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 9 Mar 2004 22:52:50 +0000 Subject: Use curl_socket_t instead of int for holding sockets. The typedefs and defines are in setup.h. --- lib/transfer.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/transfer.h') diff --git a/lib/transfer.h b/lib/transfer.h index d1b1a7697..cc6eca0df 100644 --- a/lib/transfer.h +++ b/lib/transfer.h @@ -37,12 +37,14 @@ CURLcode Curl_readwrite_init(struct connectdata *conn); /* This sets up a forthcoming transfer */ CURLcode Curl_Transfer (struct connectdata *data, - int sockfd, /* socket to read from or -1 */ + curl_socket_t sockfd, /* socket to read from or + CURL_SOCKET_BAD */ curl_off_t size, /* -1 if unknown at this point */ bool getheader, /* TRUE if header parsing is wanted */ curl_off_t *bytecountp, /* return number of bytes read */ - int writesockfd, /* socket to write to, it may very well be - the same we read from. -1 disables */ + curl_socket_t writesockfd, /* socket to write to, it may very + well be the same we read from. + CURL_SOCKET_BAD disables */ curl_off_t *writecountp /* return number of bytes written */ ); #endif -- cgit v1.2.3