NSStream blocking behavior?
NSStream blocking behavior?
- Subject: NSStream blocking behavior?
- From: Michael Gardner <email@hidden>
- Date: Wed, 7 May 2008 23:59:57 -0500
Are there any guarantees about blocking behavior for NSInputStream and
NSOutputStream? For example, if I receive an
NSStreamEventHasSpaceAvailable for an NSOutputStream, how many bytes
can I write without blocking? It doesn't seem safe to do I/O in the
main thread if there are no such guarantees, but the documentation on
Cocoa streams is unsettlingly vague on this point.
-Michael
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden