• 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
NSInputStream Overflow?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSInputStream Overflow?


  • Subject: NSInputStream Overflow?
  • From: Mathieu Coursolle <email@hidden>
  • Date: Tue, 7 Sep 2010 14:59:31 -0400

Hi Cocoa Developers,

I have an application that connects to a TCP server and exchanges data using NSInputStream.
I am using the run-loop scheduling approach.

Everything works fine most of the time. However, when my application becomes busy processing other stuff,
it seems like I am loosing some incoming bytes.

Is it possible that I lose some incoming bytes if I don't read them fast enough from the input stream?

Is it possible that incoming data overwrites unread data in the input stream?

If that is the case, is it possible to run the streams on another thread, so that the activity on the main thread
doesn't prevent incoming data from being read?

Thank you for your help!

Mathieu


_______________________________________________

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

  • Prev by Date: Re: Number of layout managers for NSTextStorage increases
  • Next by Date: UIViewController: not receiving motion events
  • Previous by thread: Re: Patching implementation in +load. Was: …Mapping Model : Spurious Warning
  • Next by thread: UIViewController: not receiving motion events
  • Index(es):
    • Date
    • Thread