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: <>
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
>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 Frystyk Nielsen,
World Wide Web Consortium
Received on Thursday, 25 February 1999 09:48:38 UTC

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