site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Apr 9, 2006, at 3:36 PM, jmzorko@mac.com wrote: Dave, kqueue is not select/poll. It does not. It just helps you populate the structure. Good luck, davez _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... To better understand what I mean by that, consider calling kevent() once per FD you allocate and only use kevent() to add to the kqueue. I'm using the EV_SET macro to add to the queue, but my understanding is that it's calling kevent() to do it. Then, as a part of your event loop, only fetch one event with kevent () and process it. This is exactly what i'm doing ... If you thought the EV_SET() macro called kevent(), then the rest of your results are called into question. but I don't see how specifying a timespec with 0 makes kevent() return an event for some FD i've never heard of. Are you checking the results of kevent()? That'll tell you how many of the returned kevent structures you can safely look at, if any. This email sent to site_archiver@lists.apple.com
participants (1)
-
Dave Zarzycki