W3C home > Mailing lists > Public > www-lib@w3.org > October to December 1996

Non-blocking sockets using libwww5.0a and Windows NT

From: Nick Athanasiadis <nathanas@tiac.net>
Date: Mon, 11 Nov 1996 02:58:23 -0500
Message-ID: <3286DC9F.310E@tiac.net>
To: www-lib@w3.org

I have been trying to use non-blocking sockets with no luck.  I am
compiling the library code using: WIN32,_WINDOWS,WWW_WIN_DLL.  I am also
setting the Preemptive mode to the protocols and requests to FALSE ie.
non-preemptive.  Following the code I observe that sockets are being
created and set to non-blocking thru the use of 'ioctlsocket'.

The problem comes up in HTDoConnect, where 'connect' first comes back
with a status of WOULDBLOCK and then on the second pass, after the
socket was signaled as ready, comes back with WSAEINVAL.  This error, I
have found to have to explanations: 1) not enough memory, 2) socket is
not bound.  I have tried binding the socket after creation and tried
thru setsockopt to increase the receive buffer size.  Nothing helped.

Am I doing anything wrong??

I appreciate any help.

Nick (nathanas@tiac.net)
Received on Monday, 11 November 1996 02:48:02 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:47 UTC