W3C home > Mailing lists > Public > www-lib@w3.org > January to March 1999

Re: Why would connect fail?

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Thu, 25 Feb 1999 09:48:35 -0500
Message-Id: <3.0.5.32.19990225094835.00d129b0@localhost>
To: "Peter Chan" <pchan@netgravity.com>, <www-lib@w3.org>
At 19:50 2/23/99 -0800, Peter Chan wrote:
>
>My program fails to connect to the server, and it seems to fail at
>TCP_NEED_CONNECT.  The macro NETCALL_WOULD_BLOCK returns true, which means
>err == WSAEWOULDBLOCK.
>
>According to the Windows documentation, this is not a fatal condition.  But
>my program is stuck at that point, and cannot go on...
>
>Any idea why this is happening?  Thanks.

Seems like you are using non-blocking sockets without an event loop. The
sample applications that I just pointed you at show yuo how to work both
with blocking and non-blocking sockets.

Henrik

--
Henrik Frystyk Nielsen,
World Wide Web Consortium
http://www.w3.org/People/Frystyk
Received on Thursday, 25 February 1999 09:48:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:28 GMT