curl-library
Re: curl-library Digest, Vol 88, Issue 52
Date: Sun, 30 Dec 2012 15:01:41 +0100
On 12/30/2012 12:00, curl-library-request_at_cool.haxx.se wrote:
> Date: Sat, 29 Dec 2012 15:05:35 +0000 (UTC)
> From: ArtemGr<artemciy_at_gmail.com>
> To:curl-library_at_cool.haxx.se
> Subject: Re: hiperfifo.cpp
> Message-ID:<loom.20121229T155811-999_at_post.gmane.org>
> Content-Type: text/plain; charset=us-ascii
>
> Giuseppe Attardi <attardi <at> di.unipi.it> writes:
>> >I wrote a sample variant of hiperfifo written in C++ and using libevent2
>> >which I would like to submit.
>> >I think it is nicely structured and easier to undersand than the C version.
> Hi, Giuseppe.
>
> Thanks for the sample!
>
> Here is another example of CURL-libevent integration, again in C++, header-only:
> http://code.google.com/p/libglim/source/browse/trunk/runner.hpp
>
> BTW, in multi_timer_cb shouldn't you check for negative and zero timeout_ms?
Indeed I have added the following check:
static int multi_timer_cb(CURLM* multi, long timeout_ms, Retriever* retr)
{
(void)multi; /* unused */
if (timeout_ms == -1L)
return -1; // no timeout
-- Beppe
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-12-30