On Thu, Apr 19, 2012 at 10:54 PM, Sanjiv wrote:
> That's right, you can use event_free() to free a timer. If your event loop
> is still active , I would recommed a evtimer_del() before event_free().
event_free() actually includes an event_del(); you don't need to call
event_del() first if you're
Thank you again!
发件人: Sanjiv
答复:
日期: Fri, 20 Apr 2012 08:24:14 +0530
至:
主题: Re: [Libevent-users] How can I write exact length of a evbuffer?
That's right, you can use event_free() to free a timer. If your event loop
is still active , I would recommed a evtimer_del() before event_free().
That's right, you can use event_free() to free a timer. If your event loop
is still active , I would recommed a evtimer_del() before event_free().
--
Sanjiv
On Fri, Apr 20, 2012 at 7:17 AM, Dawen Rie wrote:
> Thank you very much, my problem solved!
> Can I ask other question?
> I find the evtim
Thank you very much, my problem solved!
Can I ask other question?
I find the evtimer_* macro as follow. It has evtimer_new but no
evtimer_free? Is it means I don't need to free a evtimer_new return
pointer? But I notice evtimer_new was defined as event_new, so I think it
must be free by event_free,
On Apr 19, 2012, at 7:30 AM, Nick Mathewson wrote:
On Tue, Apr 10, 2012 at 7:21 PM, Nir Soffer wrote:
On Apr 10, 2012, at 6:15 PM, Nick Mathewson wrote:
And there's a third way for libevent to see a big jump forward in
time: if the program calls event_base_loop() sporadically, it is
free
On Sat, Apr 14, 2012 at 4:15 AM, Dawen Rie wrote:
> Hello everybody. I am a new user of libevent. I can't find the correct API
> to do my work.
> I had found the API:
>
> int bufferevent_write_buffer(struct bufferevent *bufev, struct evbuffer
> *buf);
> It will send all data of evbuffer. But I jus