Re: NSStream and Out-of-band data
Re: NSStream and Out-of-band data
- Subject: Re: NSStream and Out-of-band data
- From: Jens Alfke <email@hidden>
- Date: Wed, 09 Apr 2014 08:13:54 -0700
On Apr 9, 2014, at 6:33 AM, Remco Poelstra < email@hidden> wrote: I’m using NSStream to connect to a server. Upon connection the server sends back a single byte of out-of-band data. Is it possible to receive this byte with NSStream?
I have never needed to use TCP OOB data (it’s apparently extremely rare, almost to the point of being deprecated, according to what I’ve read*) and I’m 99.99% sure Foundation and CF don’t have support for it.
You can probably access it by getting the raw file handle from the stream (if NSStream doesn’t have API for this then CFStream does) and then passing it to the appropriate low-level socket call.
—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