• 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: Async output ready notification for file descriptors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Async output ready notification for file descriptors


  • Subject: Re: Async output ready notification for file descriptors
  • From: Dustin Voss <email@hidden>
  • Date: Wed, 10 Sep 2003 17:21:50 -0700

On Wednesday, September 10, 2003, at 09:39 AM, Brian Adamson wrote:

Thanks Cameron and Glenn ...

On Glenn's commen: I was also concerned that the NSFileHandle async notification appeared to invoke threading anyway and I think you confirmed that concern

So it looks like the NSFileHandle approach was barking up the wrong tree ...

An approach using the CFSocket APIs _does_ provide for both async input and output for sockets... Furthermore the somewhat undocumented CFReadStream and CFWriteStream APIs appear to provide similar support for more generalized I/O (including sockets, too)

I'll look into it, but I suspect these might do what I want when used with a CFRunLoop approach like Cameron demonstrates ...

So, it looks like you guys put me on the right track.

Thanks again!

You can use CFStream with NSRunLoops as well, if you'd prefer. It is no different.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >Re: Async output ready notification for file descriptors (From: Brian Adamson <email@hidden>)

  • Prev by Date: Re: NSOpenPanel and the New Folder button
  • Next by Date: Re: NSOpenPanel and the New Folder button
  • Previous by thread: Re: Async output ready notification for file descriptors
  • Next by thread: Machine information
  • Index(es):
    • Date
    • Thread