• 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
NSStream blocking behavior?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSStream blocking behavior?
      • From: "Michael Ash" <email@hidden>
  • Prev by Date: [moderator] Re: offtopic: cocoa iphone
  • Next by Date: InstantMessage Framework Question
  • Previous by thread: Re: expose - the algorithm
  • Next by thread: Re: NSStream blocking behavior?
  • Index(es):
    • Date
    • Thread