• 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: NSStream and Out-of-band data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

* for example, http://stackoverflow.com/questions/589928/socket-programming-how-do-i-handle-out-of-band-data
 _______________________________________________
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

References: 
 >NSStream and Out-of-band data (From: Remco Poelstra <email@hidden>)

  • Prev by Date: NSStream and Out-of-band data
  • Next by Date: Interop between ipfilter kext and osx cisco ipsec vpn
  • Previous by thread: NSStream and Out-of-band data
  • Next by thread: Interop between ipfilter kext and osx cisco ipsec vpn
  • Index(es):
    • Date
    • Thread