curl-library
Re: Socket read and write functions
Date: Wed, 21 Nov 2012 22:32:21 +0100
On Wed, Nov 21, 2012 at 9:59 PM, Oscar Koeroo <okoeroo_at_nikhef.nl> wrote:
> On 21-11-12 21:16, Colin wrote:
>>
>> needing a library to perform HTTP requests I am looking at libcurl,
>> and have stumbled over something that seems strange: There are
>> "curlopts" CURLOPT_OPENSOCKETFUNCTION etc. to set the functions to
>> open, close and manipulate the socket, however there are no
>> equivalents for read and write. Are there any specific reasons to not
>> include them and/or could they be easily added?
>
> Just to be sure, are you perhaps looking for the callback function to set
> data that libcurl then need to transfer or read from the servers' reply?
It seems that those callback functions are on the "wrong side of
things" (even though for the non-header data it would presumably not
make much difference where it is counted etc.)
Thanks, Colin
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-11-21