Re: [Libevent-users] How to implement 2.1.x the function --event_base_loop(base *, EVLOOP_NO_EXIT_ON_EMPTY) use 2.0.x

2012-10-08 Thread rqslt
于 2012年09月27日 23:41, Nick Mathewson 写道: On Thu, Sep 27, 2012 at 1:41 AM, rqslt wrote: Hi, all! I want event_base_loop(2.0.x) can "Do not exit the loop because we have no pending events", be similar to use EVLOOP_NO_EXIT_ON_EMPTY(2.1.x). Who can tell me how to do ? As a workaround, ju

[Libevent-users] how to jude is the bufferevent has been free

2012-10-08 Thread rqslt
Hi, all! I want know how to jude is the bufferevent has been free. In function A , i use bufferevent_free free the bufferevetn; In fuction B, how to jude is the bufferevent has been free ? Who can tell me what to do ? Thanks. rqslt **