Re: Does CFSocket use efficient polling?
Re: Does CFSocket use efficient polling?
- Subject: Re: Does CFSocket use efficient polling?
- From: Joel Reymont <email@hidden>
- Date: Tue, 10 Feb 2009 19:43:59 +0000
My question wasn't as silly in retrospect as I may have thought. I
somehow assumed that Apple would implement things in the "most optimal
way".
I'm trying to pump real-time audio via UDP from the iPhone. I'll
report how it goes.
On Feb 10, 2009, at 6:11 PM, Josh Graessley wrote:
As Quinn pointed out, CFSocket uses select. It's much worse than
that though.
[...]
What does this mean for your code. There's a little bouncing between
threads every now and then when you read. It is important to keep in
mind:
1) Always use non-blocking sockets
2) When your callback is called, always read all data/packets until
you get an EWOULDBLOCK error
---
http://tinyco.de
--- Mac & iPhone
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden