cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Proper way to convert ssh.c to non-blocking

From: James Housley <jim_at_thehousleys.net>
Date: Sun, 10 Jun 2007 19:54:45 -0400

On Jun 10, 2007, at 5:03 PM, Daniel Stenberg wrote:
>> Would the same be done for connect?
>
> For the connect phase, you can view the ftp.c example for how it
> does it. The same function will simply be called repeatedly until
> it sets *done = TRUE.
>

The specific question is during connect, how do you return to the top
level of curl when a call returns EAGAIN. It looks like the ftp
state machine stays looping, even while waiting for data during connect.

Jim

--
/"\   ASCII Ribbon Campaign  .
\ / - NO HTML/RTF in e-mail  .
  X  - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------
jeh@FreeBSD.org      http://www.FreeBSD.org     The Power to Serve
jim@TheHousleys.Net  http://www.TheHousleys.net
---------------------------------------------------------------------
In theory there is no difference between theory and practice.
In practice there is no similarity.
       -- From the "I wish I'd said that" archives.
Received on 2007-06-11