From: Daniel Stenberg Date: Thu, 25 Jan 2001 12:21:10 +0000 (+0000) Subject: use recv()/send() instead of read()/write() with sockets X-Git-Tag: curl-7_6-pre4~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fcc9677c43bd05b31079c7f13f63484883e4887;p=thirdparty%2Fcurl.git use recv()/send() instead of read()/write() with sockets --- diff --git a/lib/setup.h b/lib/setup.h index 709f7d0cf2..6d28e3c790 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -100,7 +100,6 @@ defined(HAVE_LIBSSL) && defined(HAVE_LIBCRYPTO) 1. close a socket 2. read from a socket 3. write to a socket - (Hopefully, only win32-crap do this weird name changing) 4. set the SIGALRM signal timeout 5. set dir/file naming defines @@ -115,8 +114,8 @@ defined(HAVE_LIBSSL) && defined(HAVE_LIBCRYPTO) #else /* gcc-for-win is still good :) */ #define sclose(x) close(x) -#define sread(x,y,z) read(x,y,z) -#define swrite(x,y,z) write(x,y,z) +#define sread(x,y,z) recv(x,y,z,0) +#define swrite(x,y,z) send(x,y,z,0) #define myalarm(x) alarm(x) #endif