cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem Related to curl_easy_perform() function

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 2 Jul 2008 10:22:54 -0700

On Wed, Jul 02, 2008 at 03:33:55PM +0530, Ajeet kumar.S wrote:
> Thank you to all of you for your support. Actually I have one doubt when we
> use curl_easy_perform() function at time of streaming from server. Data will
> stream from server then at that time our control will inside in
> curl_easy_perform() function.In this period we can not perform other function
> till now data is not going to stop and control come out from curl_easy_perform
> (). Please tell me how to switch from curl_easy_perform() at intermediate of
> data streaming.

You can use the callbacks to perform whichever other functions you
need to do; the write and progress callbacks are probably the most useful
to you for this. You could also use the multi interface and maintain almost
complete control within your app without blocking within libcurl.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-07-02