curl-library
Re: Need Write callback information
Date: Mon, 16 May 2016 09:20:30 +0200 (CEST)
On Mon, 16 May 2016, smruti kumari wrote:
> 1. Is it providing the a complete packet to the application ?
What "packet" are you talking about here? TCP is a stream built from many
separate IP packets.
> 2. Is it providing the partial data(chunk) of a packet to application ?
libcurl doesn't really provide packets, it sends protocol (payload) data to
the application.
Is there anything in the CURLOPT_WRITEFUNCTION description that is unclear?
The callback function will be passed as much data as possible in all
invokes, but you must not make any assumptions. It may be one byte, it may
be thousands. The maximum amount of body data that will be passed to the
write callback is defined in the curl.h header file: CURL_MAX_WRITE_SIZE
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2016-05-16