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:29:16 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!feed.news.nacamar.de!news.belwue.de!news.uni-stuttgart.de!news.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: Gnat.Sockets and non-blocking connects Date: Sun, 29 Jun 2003 16:29:15 +0200 Message-ID: <87r85dhs90.fsf@deneb.enyo.de> References: <87he69j8zo.fsf@deneb.enyo.de> <87fzltnf33.fsf@inf.enst.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: albireo.enyo.de 1056896955 13814 212.9.189.171 (29 Jun 2003 14:29:15 GMT) X-Complaints-To: Cc: sam@rfc1149.net Cancel-Lock: sha1:6nTCGkqffyD4UEoZutNCmQUN+/E= Xref: archiver1.google.com comp.lang.ada:39888 Date: 2003-06-29T16:29:15+02:00 List-Id: Samuel Tardieu writes: >>>>>> "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. The SO_ERROR socket option is implemented in two different ways. > Jano, you need to check the write set, Correct. > 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*. Unfortunately, you don't get the error code in this case.