Re: kevent and wait time?
Re: kevent and wait time?
- Subject: Re: kevent and wait time?
- From: email@hidden
- Date: Mon, 10 Apr 2006 01:57:12 -0700
Dave,
I'm using the EV_SET macro to add to the queue, but my
understanding is that it's calling kevent() to do it.
It does not. It just helps you populate the structure.
If you thought the EV_SET() macro called kevent(), then the rest of
your results are called into question.
OK, my bad -- but after re-re-re-re-reading the man page and looking
at my code (which seems to work, well, mostly <smile>), it is doing
what you indicate ... and I do receive events from only the FDs I put
on the kqueue when I call kevent as long as I specify a non-0 timeval.
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.
Yes, I am ... but i'm going to take a longer look at this and figure
out what i'm doing wrong. I appreciate the help, i'm just trying to
understand this. I advocate Macs and OSX all the time to friends and
coworkers, and I want to say things like "you can make an OSX server
scale regarding simultaneous active socket connections as well, or
better, than any Windows or Linux machine, and this is how 'cuz i've
done it on all of them."
Regards,
John
Falling You - exploring the beauty of voice and sound
http://www.fallingyou.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden