cURL / Mailing Lists / curl-users / Single Mail


RE: Deferred Synchronous using Multi Interface

From: <Priya.Ramakrishnan_at_WellsFargo.COM>
Date: Tue, 25 Jun 2002 09:11:35 -0700

Thanks for the help.
I think i can do it this way. I will work on this and give back a result
Also was the libcurl.def modified in 7.9.8 in CurlLib.dsw. In 7.9.7 it did
not have the multi interfaces and so there were linker problems

-----Original Message-----
From: Daniel Stenberg []
Sent: Tuesday, June 25, 2002 12:00 AM
To: Priya.Ramakrishnan_at_WellsFargo.COM
Cc: Curl Mailinglist
Subject: Re: Deferred Synchronous using Multi Interface

On Mon, 24 Jun 2002 Priya.Ramakrishnan_at_WellsFargo.COM wrote:

> I have started using libcurl 7.9.7 recently so that i can do non blocking
> http connection. I am working on a C++ wrapper around Curl and Open SSL.

This seems to be a common habit. I trust you're aware of Jean-Philippe
Barrette-LaPierre's work:

I would also recommend you to upgrade to 7.9.8, as the multi interface is
still developing and several things were fixed for it in this release.

> Can you tell me how to relate between a particular easy handle and the
> fd_set or socket id.
> Would really appreciate if someone could help me with this information. Or
> i need to know when the Perform has been completed and when all the data
> have been received so that it can retrieved by the clients code.

This was slightly altered/corrected in 7.9.8:

Using curl_multi_perform() you will know when one or more handles complete,
thanks to the 'running_handles' number you get back in the integer you pass
pointer to in the second argument.

Calling curl_multi_info_read() when you've detected that a handle has
finished, you'll get a "message" back that'll tell you both which curl
that completed and the CURLcode return code from that particular transfer.

Isn't this what you wanted?

    Daniel Stenberg -- curl groks URLs --
This email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabConf 2002, Aug. 20-22, Keystone, CO
Received on 2002-06-25