curl-library
Re: How do you know when the read/write callbacks are done and transfer is complete?
Date: Thu, 21 Jan 2010 09:06:26 -0600
On Thu, Jan 21, 2010 at 8:47 AM, vick wrote:
> You have the option of associating read/write callbacks
> with an easy handle.
> How do you know when the transfer is complete?
> Is the callback called again with some special code?
> how do you figure that out?
if you're using the "single" api, curl_easy_perform won't return
until the transfer is complete.
if you're using the "multi" api, things get a little more complicated -
you need call curl_multi_info_read() in a loop and check each handle
for CURLMsg->msg == CURLMSG_DONE.
- Jeff
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-01-21