[Libevent-users] Q: Will listener FD receive regular EV_READ callbacks?

2012-12-05 Thread Alexander Kolbasov
The libevent documentation mentions connection listeners that provide callback events for listener file descriptors. My question is - if we register EV_READ callback on a listener file descriptor, will it get EV_READ events when a new connection is arriving or the only way to work with listenets

Re: [Libevent-users] Q: Exception callbacks and events that should run immediately

2012-12-05 Thread Alexander Kolbasov
On Dec 5, 2012, at 2:15 PM, Mark Ellzey wrote: > On Wed, Dec 05, 2012 at 07:28:25PM +, Alexander Kolbasov wrote: >> On Dec 5, 2012, at 7:32 AM, Mark Ellzey wrote: >> >>> On Wed, Dec 05, 2012 at 11:10:04AM +0200, Nir Soffer wrote: On Wed, Dec 5, 2012 at 10:54 AM, Sashan Govender wrote: >

Re: [Libevent-users] Q: Exception callbacks and events that should run immediately

2012-12-05 Thread Mark Ellzey
On Wed, Dec 05, 2012 at 07:28:25PM +, Alexander Kolbasov wrote: > On Dec 5, 2012, at 7:32 AM, Mark Ellzey wrote: > > > On Wed, Dec 05, 2012 at 11:10:04AM +0200, Nir Soffer wrote: > >> On Wed, Dec 5, 2012 at 10:54 AM, Sashan Govender wrote: > >> > >>> Hi! > >>> > >>> > 1) I don't see a

Re: [Libevent-users] Q: Exception callbacks and events that should run immediately

2012-12-05 Thread Alexander Kolbasov
On Dec 5, 2012, at 7:32 AM, Mark Ellzey wrote: > On Wed, Dec 05, 2012 at 11:10:04AM +0200, Nir Soffer wrote: >> On Wed, Dec 5, 2012 at 10:54 AM, Sashan Govender wrote: >> >>> Hi! >>> >>> 1) I don't see any notion of event notification on FD exception - e.g. socket close. Ther

Re: [Libevent-users] Q: Exception callbacks and events that should run immediately

2012-12-05 Thread Mark Ellzey
On Wed, Dec 05, 2012 at 07:39:01AM +, Alexander Kolbasov wrote: > > 2) Sometimes I need to post an event that will be executed in the same event > loop iteration > (possibly after other events are processed)- e.g. I want to break a long > call stack and restart > from the event loo

Re: [Libevent-users] Q: Exception callbacks and events that should run immediately

2012-12-05 Thread Mark Ellzey
On Wed, Dec 05, 2012 at 11:10:04AM +0200, Nir Soffer wrote: > On Wed, Dec 5, 2012 at 10:54 AM, Sashan Govender wrote: > > > Hi! > > > > > >> 1) I don't see any notion of event notification on FD exception - e.g. > >> socket close. > >> There are some words for buffer events, but nothing for r

Re: [Libevent-users] Q: Exception callbacks and events that should run immediately

2012-12-05 Thread Nir Soffer
On Wed, Dec 5, 2012 at 10:54 AM, Sashan Govender wrote: > Hi! > > >> 1) I don't see any notion of event notification on FD exception - e.g. >> socket close. >> There are some words for buffer events, but nothing for regular file >> descriptor based callbacks. So what is a good way to get

Re: [Libevent-users] Q: Exception callbacks and events that should run immediately

2012-12-05 Thread Sashan Govender
Hi! > 1) I don't see any notion of event notification on FD exception - e.g. > socket close. > There are some words for buffer events, but nothing for regular file > descriptor based callbacks. So what is a good way to get a callback > when specific > FD is closed/disconnected? > If