cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How do you know when the read/write callbacks are done and transfer is complete?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 22 Jan 2010 10:37:02 +0100 (CET)

On Thu, 21 Jan 2010, vick wrote:

> Its the multi scenario that interests me. You have a few easy handles, and
> the easy handles keep arriving and leaving (how to manage that?) and they
> may hang around till you decide you want to do another request on that URL,
> or set up another URL on the easy handle. Can you do this without
> multithreading?

Sure, when you use the multi interface you can add and remove easy handles
(individual transfers/requests) at any time while all the other handles are
still doing transfers.

And this is without threading, yes.

> i am just wondering how well the multi interface is designed to handle this
> kind of thing.

It has been designed with that kind of use in mind, and many apps use it like
that already.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-01-22