Re: [Libevent-users] event_base_dispatch returning -1 - help debugging

2012-06-13 Thread Nir Soffer
On Jun 12, 2012, at 11:21 PM, Nick Mathewson wrote: Actually I think it's a C error. Check out the documentation for event_pending(): /* @return true if the event is pending on any of the events in 'what', (that is to say, it has been added), or 0 if the event is not added. */ Note that

Re: [Libevent-users] How to limit the read/write( input/output ) traffic?

2012-06-13 Thread Mark Ellzey
On Wed, Jun 13, 2012 at 10:39:01PM +0800, zhengfish wrote: > Hi, all > I want to shape the read/write traffic, I check the data-structure > I find there are 4 members in the struct bufferevent which maybe do > that function. > However I don't know how to do it in detail steps. > Any

[Libevent-users] How to limit the read/write( input/output ) traffic?

2012-06-13 Thread zhengfish
Hi, all I want to shape the read/write traffic, I check the data-structure I find there are 4 members in the struct bufferevent which maybe do that function. However I don't know how to do it in detail steps. Anyone can share some tips for that? struct bufferevent { ..