Re: Async output ready notification for file descriptors
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.