• 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: CFStream question.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFStream question.


  • Subject: Re: CFStream question.
  • From: daniel <email@hidden>
  • Date: Wed, 6 Apr 2005 21:30:22 -0700

The documentation is pretty specific about this:

<x-tad-bigger>function result
TRUE</x-tad-bigger>
if the specified stream was opened or is in the process of being opened; otherwise <x-tad-bigger>FALSE</x-tad-bigger>. Call <x-tad-bigger>CFReadStreamGetStatus</x-tad-bigger> to find out if the stream is open or still in the process of being opened.

If the call is something that you believe should be "fast enough" that you want to assume it will be opened quickly without waiting for a callback, then you should be willing to take the risk of blocking execution for as long as it takes CFReadStreamGetStatus to return "open." Callbacks are not the only choice when it comes to making sure the stream is open...

Daniel

On Apr 6, 2005, at 2:12 PM, Josh Morris wrote:

I'm using CFStreamCreatePairWithSocket to, well, create a pair o' streams. Both the read and write streams must be open before I can use them as with SecureTransport to perform SSLHandshake. I need know if I can assume the streams are open immediately after the CF(Write/Read)StreamOpen calls. (Callbacks are not desirable in my situation.)
 _______________________________________________
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:
    • How to get data after an ordrel request?
      • From: Jen Beaven <email@hidden>
References: 
 >CFStream question. (From: Josh Morris <email@hidden>)

  • Prev by Date: CFStream question.
  • Next by Date: Accessing SMB-share with a fixed path
  • Previous by thread: CFStream question.
  • Next by thread: How to get data after an ordrel request?
  • Index(es):
    • Date
    • Thread