curl-library
Re: curl_multi_perform - how to know if data is entirely sent.
Date: Fri, 20 May 2011 12:28:49 +0530
yes it works thank you. But will DEBUGFUNCTION slow down the performance of
the application?
Also i tried using
curl_easy_getinfo(curl, CURLINFO_SIZE_UPLOAD, &sentbytes);
inside while loop and then compare the value with actual bytes to be sent .
This also seems to work.
Which one would be better approach
Thanks
On Fri, May 20, 2011 at 12:16 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Fri, 20 May 2011, swathi upadhyaya wrote:
>
> I just want to make sure that data is entirely sent on socket before
>> comming out of send function,. but donot want to wait for HTTP response. Is
>> there any way to acheive this?
>>
>
> The only way I can think of right now is to use the DEBUGFUNCTION and count
> the amount of data sent and when that counter hits the amount you know it
> should reach, then it is done.
>
> --
>
> / daniel.haxx.se
>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-20