Re: Not getting an NSStreamEventHasBytesAvailable message
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