• 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: CFSocket with a file descriptor?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >CFSocket with a file descriptor? (From: Marc Epard <email@hidden>)

  • Prev by Date: CFSocket with a file descriptor?
  • Next by Date: Re: Rendezvous services lookup problem
  • Previous by thread: CFSocket with a file descriptor?
  • Next by thread: Raw Ethernet, OT, and OS X
  • Index(es):
    • Date
    • Thread