Re: Asynchronous sockets?
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.