• 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: Not getting an NSStreamEventHasBytesAvailable message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Not getting an NSStreamEventHasBytesAvailable message


  • Subject: Re: Not getting an NSStreamEventHasBytesAvailable message
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 14 Feb 2017 09:13:01 -0800


On Feb 13, 2017, at 3:02 PM, Quinn The Eskimo! <email@hidden> wrote:

That’s the correct approach.  Repeatedly calling `-read:maxLength:` inside your `.hasBytesAvailable` handler can cause various odd problems, not least of which is the starvation of other streams scheduled on the same run loop.

Then I’m back to the question of why this problem is occurring. Somehow I am not being notified of data available on the stream.

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Not getting an NSStreamEventHasBytesAvailable message
      • From: "Quinn \"The Eskimo!\"" <email@hidden>
References: 
 >Not getting an NSStreamEventHasBytesAvailable message (From: Jens Alfke <email@hidden>)
 >Re: Not getting an NSStreamEventHasBytesAvailable message (From: Jens Alfke <email@hidden>)
 >Re: Not getting an NSStreamEventHasBytesAvailable message (From: "Quinn \"The Eskimo!\"" <email@hidden>)

  • Prev by Date: Re: Not getting an NSStreamEventHasBytesAvailable message
  • Next by Date: Re: Not getting an NSStreamEventHasBytesAvailable message
  • Previous by thread: Re: Not getting an NSStreamEventHasBytesAvailable message
  • Next by thread: Re: Not getting an NSStreamEventHasBytesAvailable message
  • Index(es):
    • Date
    • Thread