From: Florian Weimer <fw@deneb.enyo.de>
Cc: sam@rfc1149.net
Subject: Re: Gnat.Sockets and non-blocking connects
Date: Sun, 29 Jun 2003 16:29:15 +0200
Date: 2003-06-29T16:29:15+02:00 [thread overview]
Message-ID: <87r85dhs90.fsf@deneb.enyo.de> (raw)
In-Reply-To: 87fzltnf33.fsf@inf.enst.fr
Samuel Tardieu <sam@rfc1149.net> writes:
>>>>>> "Florian" == Florian Weimer <fw@deneb.enyo.de> 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.
next prev parent reply other threads:[~2003-06-29 14:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-29 12:26 Gnat.Sockets and non-blocking connects Jano
2003-06-29 13:42 ` Florian Weimer
2003-06-29 14:17 ` Samuel Tardieu
2003-06-29 14:29 ` Florian Weimer [this message]
2003-06-29 18:07 ` Jano
2003-06-29 20:50 ` Florian Weimer
2003-06-29 21:13 ` Samuel Tardieu
2003-06-29 21:27 ` Florian Weimer
2003-06-29 22:38 ` Samuel Tardieu
2003-06-29 23:00 ` Jano
2003-06-29 23:00 ` Jano
2003-06-30 15:07 ` Jano
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox