[Libevent-users] Is anybody use libevent on iOS?

2012-05-21 Thread Dawen Rie
How to set the compile parameters?

Re: [Libevent-users] Connect to server failed, libevent return BEV_EVENT_ERROR event and BEV_EVENT_CONNECTED event?

2012-04-27 Thread Dawen Rie
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

Re: [Libevent-users] How can I write exact length of a evbuffer?

2012-04-19 Thread Dawen Rie
_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 &

Re: [Libevent-users] How can I write exact length of a evbuffer?

2012-04-19 Thread Dawen Rie
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

[Libevent-users] How can I write exact length of a evbuffer?

2012-04-14 Thread Dawen Rie
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

[Libevent-users] Connect to server failed, libevent return BEV_EVENT_ERROR event and BEV_EVENT_CONNECTED event?

2012-04-13 Thread Dawen Rie
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,