Re: [Libevent-users] question about poll()

2009-12-01 Thread Patrick C
As Nick said, the libevent source itself is a great example of abstracting poll() functionality on multiple platforms, using the locally optimized methods of epoll, kqueue, etc depending on the operating system. This is primarily designed for high-performance network daemons (and sometimes clients)

Re: [Libevent-users] Threading concerns

2009-12-01 Thread Nick Mathewson
On Mon, Nov 30, 2009 at 02:49:09AM -0500, Donghua Xu wrote: > Thanks Nick. How do I enable the "common timeout" logic? Or is it > enabled by default in 2.0.3-alphra? Check out the documentation for event_base_init_common_timeout() in include/event2/event.h in Libevent 2.0.3-alpha. Basically, if y

Re: [Libevent-users] question about poll()

2009-12-01 Thread Nick Mathewson
On Wed, Nov 25, 2009 at 02:44:37PM -0500, Patrick Galbraith wrote: > Hi there all! > > I'm working on trying to port libmemcached to Windows. It is not an easy > task! I've just found that libmemcached uses poll() and this is a bit of > a road-block! What do you guys do to get cross-platform sup

Re: [Libevent-users] get next timeout from libevent

2009-12-01 Thread Nick Mathewson
On Tue, Nov 24, 2009 at 03:31:18PM +0100, Filippo Giunchedi wrote: [rewrapped] > Hi, > > we are trying to build a library which uses libevent but also has > the capability to be integrated into an application's main loop. > > Our solution so far includes three functions: > - get the list of file