• 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: Why would CFReadStreamSetProperty return FALSE?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why would CFReadStreamSetProperty return FALSE?


  • Subject: Re: Why would CFReadStreamSetProperty return FALSE?
  • From: Jeremy Wyld <email@hidden>
  • Date: Sun, 22 Jan 2006 08:48:40 -0800

On Jan 22, 2006, at 8:23 AM, Martin Redington wrote:

I'm also using CFReadStreamSetProperty to set the

kCFStreamPropertySocketSecurityLevel entry, and that works fine.



I'm confused by this bit.  Are you also calling this in addition to kCFStreamPropertySSLSettings?

There should be no threading issues associated with making these calls per se.  Because you're making them from another thread, you always run a risk of not issuing the calls at the correct time unless your protocol has a mechanism to "know" when to do it.

You can always look at the CFSocketStream source.
http://darwinsource.opendarwin.org/10.4/CFNetwork-128/Stream/CFSocketStream.c

The functions that you're interested in are _SocketStreamSecuritySetContext_NoLock and _SocketStreamSecuritySetInfo_NoLock.  

jeremy
 _______________________________________________
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:
    • Re: Why would CFReadStreamSetProperty return FALSE?
      • From: Martin Redington <email@hidden>
References: 
 >Why would CFReadStreamSetProperty return FALSE? (From: Martin Redington <email@hidden>)

  • Prev by Date: Why would CFReadStreamSetProperty return FALSE?
  • Next by Date: Re: Why would CFReadStreamSetProperty return FALSE?
  • Previous by thread: Why would CFReadStreamSetProperty return FALSE?
  • Next by thread: Re: Why would CFReadStreamSetProperty return FALSE?
  • Index(es):
    • Date
    • Thread