• 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: Asynchronous sockets?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Asynchronous sockets?


  • Subject: Re: Asynchronous sockets?
  • From: Douglas Davidson <email@hidden>
  • Date: Wed, 6 Feb 2002 16:18:23 -0800

On Wednesday, February 6, 2002, at 03:56 PM, Duane Murphy wrote:

If you're in an app with a CFRunLoop, I believe you can use CFSocket. I'm
not familiar with either, so I can't help much beyond that.

Ah, run loop polling instead. I expect that all CFSocket does is call
select() in the run loop? I suppose that could be convenient for some
applications.

The idea of the run loop is to avoid polling. The current implementation of CFSocket maintains a single private thread which calls select(), and then wakes up the relevant run loops as necessary. This is an implementation detail; future implementations might be able to dispense with the additional thread. However, they still will not use the processor in the absence of socket activity.

Douglas Davidson
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Asynchronous sockets?
      • From: Duane Murphy <email@hidden>
References: 
 >Re: Asynchronous sockets? (From: Duane Murphy <email@hidden>)

  • Prev by Date: Re: Asynchronous sockets?
  • Next by Date: Re: Asynchronous sockets?
  • Previous by thread: Re: Asynchronous sockets?
  • Next by thread: Re: Asynchronous sockets?
  • Index(es):
    • Date
    • Thread