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-08 02:10:58 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!freenix!enst.fr!beeblebrox!nobody From: Samuel Tardieu Newsgroups: comp.lang.ada Subject: Re: [OT] Two sockets questions Date: Thu, 08 May 2003 11:10:37 +0200 Organization: Avian Carrier & Friends Message-ID: <87wuh1g5wy.fsf@inf.enst.fr> References: <8765omaa6b.fsf@inf.enst.fr> NNTP-Posting-Host: willow.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: avanie.enst.fr 1052385057 87813 137.194.161.3 (8 May 2003 09:10:57 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Thu, 8 May 2003 09:10:57 +0000 (UTC) Mail-Copies-To: sam@rfc1149.net User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.4 (Military Intelligence, i386--freebsd) Cancel-Lock: sha1:+tdpxPBbjM6D/YLGtFlO+tP0H50= Xref: archiver1.google.com comp.lang.ada:37058 Date: 2003-05-08T11:10:37+02:00 List-Id: >>>>> "Jano" == Jano writes: Jano> That's no problem. I have used it before in the Gnat Jano> binding. However, the Gnat thick binding raises a "Socket_error Jano> [10035] Operation would block" trying to connect On what OS? The correct return code is undoubtly EINPROGRESS, but it is possible that EINPROGRESS is equal to EWOULDBLOCK on some platforms. Jano> so I guess I may need to go the thin way :( Oh well... Probably. It looks like GNAT.Sockets considers that -1 returned by connect() is always an error and do not consider the asynchronous case when connecting. You may be on your own for this one. Sam -- Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/sam