How to set the compile parameters?
As nobody answer my question for a long time,
I try to solve the problem by adding a
event_base_loopbreak(base);
When BEV_EVENT_ERROR occurred.
Is it really the normal solution for such kind of problem?
在 12-4-14 上午11:23, "Dawen Rie" 写入:
> I just write a simple client, and try to
_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 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
&
ed(ev)
/**@}*/
在 12-4-19 下午11:02, "Nick Mathewson" 写入:
>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
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 just want to send a special
length not all.
And API:
int buffereve
I just write a simple client, and try to connect to a server which NOT
running.
libevent will trigger eventcb too times, the first time is BEV_EVENT_ERROR
and the second time is BEV_EVENT_CONNECTED. Is there some wrong with me?
The code like following:
static void eventcb(struct bufferevent *bev,