• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Does CFSocket use efficient polling?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Does CFSocket use efficient polling?
      • From: Jens Alfke <email@hidden>
References: 
 >Does CFSocket use efficient polling? (From: Joel Reymont <email@hidden>)
 >Re: Does CFSocket use efficient polling? (From: Josh Graessley <email@hidden>)

  • Prev by Date: Re: Does CFSocket use efficient polling?
  • Next by Date: RE: Does CFSocket use efficient polling?
  • Previous by thread: Re: Does CFSocket use efficient polling?
  • Next by thread: Re: Does CFSocket use efficient polling?
  • Index(es):
    • Date
    • Thread