• 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
Re: NSFileHandle readInBackground vs threading?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSFileHandle readInBackground vs threading?


  • Subject: Re: NSFileHandle readInBackground vs threading?
  • From: Alexander Bokovikov <email@hidden>
  • Date: Wed, 09 Nov 2011 11:02:51 +0600


On 09.11.2011, at 0:50, Scott Ribe wrote:

On Nov 8, 2011, at 9:54 AM, Alexander Bokovikov wrote:

I have a need to read some data from a local socket, which serves for IPC. And data may come very quickly, so (AFAIU) inner socket buffer might overflow, so a portion of data might be lost.

What makes you think that? If the buffers fill up, writes will block.

OK, then the same problem will appear at the other end of the socket. One way or another I need to read from the socket as fast as possible. And I have a real problem now. Sometimes data are lost when they come with high speed. Though I agree, that first I need to investigate what end of the socket has a bottle neck.


Thank you.
_______________________________________________

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: NSFileHandle readInBackground vs threading?
      • From: Scott Ribe <email@hidden>
References: 
 >NSFileHandle readInBackground vs threading? (From: Alexander Bokovikov <email@hidden>)
 >Re: NSFileHandle readInBackground vs threading? (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: ObjC's flat and all-exported namespace, help!
  • Next by Date: Re: NSFileHandle readInBackground vs threading?
  • Previous by thread: Re: NSFileHandle readInBackground vs threading?
  • Next by thread: Re: NSFileHandle readInBackground vs threading?
  • Index(es):
    • Date
    • Thread