comp.lang.ada
 help / color / mirror / Atom feed
From: Jano <nono@celes.unizar.es>
Subject: Re: Gnat.Sockets and non-blocking connects
Date: Mon, 30 Jun 2003 01:00:24 +0200
Date: 2003-06-30T01:00:24+02:00	[thread overview]
Message-ID: <MPG.19698df2d29d5c3998972c@News.CIS.DFN.DE> (raw)
In-Reply-To: 87he68mrvk.fsf@inf.enst.fr

Samuel Tardieu dice...
> >>>>> "Florian" == Florian Weimer <fw@deneb.enyo.de> writes:
> 
> Florian> It's EINPROGRESS.  Pretty informative, isn't it?
> 
> It's never EINPROGRESS if you wait until the corresponding bit is set
> by select in the write set.

It's never EINPROGRESS in my experience: the first time is "would 
block", following times is another one (invalid parameter I seem to 
remember but I'm not sure; certainly nothing like "in progress").

Checking for writing is ok for connects that succeed. For failed ones, 
you must check another thing. The windows SDK says to check for 
exception condition in select. Checking for reading or writing doesn't 
reveal the failure.

-- 
-------------------------
Jano
402450.at.cepsz.unizar.es
-------------------------



  reply	other threads:[~2003-06-29 23:00 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
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 [this message]
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