Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFStream - read non-blocking or with timeout?




On 29 Jul 2005, at 00:55, David M. Cotter wrote:

Is it possible to set a CFReadStream to non-blocking or, failing that, to time out after a specified interval?

you could do it on an MP thread, and kill it off after a time

Or use it in async mode (ie with a callback) and only read when you get a kCFStreamEventHasBytesAvailable or use CFReadStreamHasBytesAvailable(readStream) to see if the read would block


Fred
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >CFStream - read non-blocking or with timeout? (From: James Griffin <email@hidden>)
 >Re: CFStream - read non-blocking or with timeout? (From: "David M. Cotter" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.