Re: [Libevent-users] message loop

2011-07-06 Thread Jardel Weyrich
The libevent book might help :) http://www.wangafu.net/~nickm/libevent-book/Ref3_eventloop.html On Wed, Jul 6, 2011 at 8:20 PM, mosta wrote: > On 07/06/11 22:32, Mark Ellzey wrote: > > On Wed, Jul 06, 2011 at 10:23:57PM +0200, mosta wrote: > >> That I run the main loop and call a function that h

Re: [Libevent-users] message loop

2011-07-06 Thread mosta
On 07/06/11 22:32, Mark Ellzey wrote: > On Wed, Jul 06, 2011 at 10:23:57PM +0200, mosta wrote: >> That I run the main loop and call a function that handles what's >> happening in the event base loop. > If I grok this correctly, you are asking whether you can get a list of > currently active events

Re: [Libevent-users] message loop

2011-07-06 Thread Mark Ellzey
On Wed, Jul 06, 2011 at 10:23:57PM +0200, mosta wrote: > That I run the main loop and call a function that handles what's > happening in the event base loop. If I grok this correctly, you are asking whether you can get a list of currently active events in an event_base? ***

Re: [Libevent-users] message loop

2011-07-06 Thread mosta
On 07/06/11 20:27, Mark Ellzey wrote: > On Wed, Jul 06, 2011 at 08:01:11PM +0200, mosta wrote: >> On 07/06/11 19:39, Mark Ellzey wrote: >>> Can you clarify what you mean by "message loop"? >> I mean the event base loop. > Can you clarify what you mean by "over taking"? > ***

Re: [Libevent-users] message loop

2011-07-06 Thread Juan Pablo Fernandez
Probably not. 2011/7/6 Mark Ellzey : > On Wed, Jul 06, 2011 at 08:01:11PM +0200, mosta wrote: >> On 07/06/11 19:39, Mark Ellzey wrote: >> > Can you clarify what you mean by "message loop"? >> I mean the event base loop. > > Can you clarify what you mean by "over taking"? >

Re: [Libevent-users] How to limit http connections in libevent ?

2011-07-06 Thread Kun Xi
If you are trying to limit the connection only, you can maintain a internal counter for each process, and check current value during accept callback. On Sat, Jul 2, 2011 at 7:45 AM, Artyom Boyko wrote: > Hi! > I'm using libevent with N processes (i'm using fork). > > I need to limit connections/

Re: [Libevent-users] message loop

2011-07-06 Thread Mark Ellzey
On Wed, Jul 06, 2011 at 08:01:11PM +0200, mosta wrote: > On 07/06/11 19:39, Mark Ellzey wrote: > > Can you clarify what you mean by "message loop"? > I mean the event base loop. Can you clarify what you mean by "over taking"? ***

Re: [Libevent-users] message loop

2011-07-06 Thread mosta
On 07/06/11 19:39, Mark Ellzey wrote: > Can you clarify what you mean by "message loop"? I mean the event base loop. *** To unsubscribe, send an e-mail to majord...@freehaven.net with unsubscribe libevent-usersin the body.

Re: [Libevent-users] message loop

2011-07-06 Thread Mark Ellzey
On Wed, Jul 06, 2011 at 07:04:51PM +0200, mosta wrote: > hi, > > is there a API for over taking the message loop? Can you clarify what you mean by "message loop"? *** To unsubscribe, send an e-mail to majord...@freehaven.net with

[Libevent-users] message loop

2011-07-06 Thread mosta
hi, is there a API for over taking the message loop? greetings mosta *** To unsubscribe, send an e-mail to majord...@freehaven.net with unsubscribe libevent-usersin the body.