On Mon, Apr 20, 2009 at 01:53:13PM +0200, Pierre-Yves Ritschard wrote: > * Taylor Venable ([email protected]) wrote: > > I'm looking at using kqueue() and kevent() for some high-load > > client-side socket work, writing part of a stress testing system for > > our product at work. I've got an example that I put together, using > > the read filter on the socket file descriptors, but kevent() doesn't > > tell me that any data is available to be read. There is data there, > > though, so I must have done something wrong in setup. If somebody > > could take a look and tell me what I'm doing wrong, I'd really > > appreciate it. > > > > The plain-text version is here: > > http://real.metasyntax.net:2357/tmp/kevent.c > > > > Or if you like some HTML coloring: > > http://real.metasyntax.net:2357/tmp/kevent_c.html > > > > I'm doing this on OpenBSD 4.5 BETA currently, while waiting for my CD > > set to arrive. :) > > > > Thanks, > > > > The way we do it is through libevent, it's reliable, simple and > portable. >
You were faster than me, damn :-) -- Gilles Chehade http://www.poolp.org/~gilles/

