On 12/30/2012 12:00, [email protected] wrote:
Date: Sat, 29 Dec 2012 15:05:35 +0000 (UTC)
From: ArtemGr<[email protected]>
To:[email protected]
Subject: Re: hiperfifo.cpp
Message-ID:<[email protected]>
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