Re: CFStream question.
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