From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c22949b5ebf3505f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-10 07:06:36 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: 402450@cepsz.unizar.es (Jano) Newsgroups: comp.lang.ada Subject: Re: [OT] Two sockets questions Date: 10 May 2003 07:06:35 -0700 Organization: http://groups.google.com/ Message-ID: <5d6fdb61.0305100606.1a36d426@posting.google.com> References: <8765omaa6b.fsf@inf.enst.fr> <87wuh1g5wy.fsf@inf.enst.fr> NNTP-Posting-Host: 62.101.162.61 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1052575596 18689 127.0.0.1 (10 May 2003 14:06:36 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 10 May 2003 14:06:36 GMT Xref: archiver1.google.com comp.lang.ada:37147 Date: 2003-05-10T14:06:36+00:00 List-Id: Samuel Tardieu wrote in message news:<87wuh1g5wy.fsf@inf.enst.fr>... > On what OS? The correct return code is undoubtly EINPROGRESS, but it > is possible that EINPROGRESS is equal to EWOULDBLOCK on some > platforms. This has been found to be what's happening. Michael Bode has pointed in the Gnat list the article where Microsoft explains that Windows will return EWOULDBLOCK in an asynchronous connect. The connect is in effect being performed and Gnat is simply reporting the underlying Windows error. Case solved. Many thanks to all who have apported valuable knowledge and interest. Jano. P.s: The article is (beware of line split) http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/connect_2.asp