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,c6c265459ff33db7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-29 07:17:15 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.stueberl.de!proxad.net!usenet-fr.net!enst.fr!beeblebrox!nobody From: Samuel Tardieu Newsgroups: comp.lang.ada Subject: Re: Gnat.Sockets and non-blocking connects Date: Sun, 29 Jun 2003 16:17:04 +0200 Organization: Avian Carrier & Friends Message-ID: <87fzltnf33.fsf@inf.enst.fr> References: <87he69j8zo.fsf@deneb.enyo.de> NNTP-Posting-Host: willow.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: avanie.enst.fr 1056896234 31956 137.194.161.3 (29 Jun 2003 14:17:14 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Sun, 29 Jun 2003 14:17:14 +0000 (UTC) Mail-Copies-To: sam@rfc1149.net User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.5 (cauliflower, i386--freebsd) Cancel-Lock: sha1:77H72ctOo4Y32arcZ1GqxpXnwMg= Xref: archiver1.google.com comp.lang.ada:39887 Date: 2003-06-29T16:17:04+02:00 List-Id: >>>>> "Florian" == Florian Weimer writes: Florian> Errors are reported by the R/W selectors. However, Florian> nonblocking connect error reporting is not portable, see Florian> Steven's UNIX Network Programming. In practice, it *is* portable. Jano, you need to check the write set, and try to connect again. You will get an error. If the error is EISCONN, you *are* connected. If this is anything else, you *aren't*. Sam -- Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/sam