Re: CFSocket with a file descriptor?
Re: CFSocket with a file descriptor?
- Subject: Re: CFSocket with a file descriptor?
- From: Douglas Davidson <email@hidden>
- Date: Mon, 28 Jul 2003 09:54:05 -0700
On Monday, July 28, 2003, at 07:33 AM, Marc Epard wrote:
I want to use a run loop source callback when there is data available
on a
pipe. Is it okay to use a non-socket file descriptor (e.g.
STDIN_FILENO)
with a CFSocket? Something like this:
CFSocket is not really designed for this, but if you restrict yourself
to the portions of CFSocket that do not use socket-specific calls, then
there is no particular reason why CFSocket cannot be used with other
file descriptors. I do not have a specific list, but the read callback
as in your example should be OK.
However, it may be easier to work with this at a slightly higher level,
using CFStream and the other CFNetwork APIs. Take a look at those
first.
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.