• 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
Use of CFReadStreamRead interferes with SCNetworkReachabilityCallBack
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Use of CFReadStreamRead interferes with SCNetworkReachabilityCallBack


  • Subject: Use of CFReadStreamRead interferes with SCNetworkReachabilityCallBack
  • From: David Niemeijer <email@hidden>
  • Date: Fri, 22 Apr 2005 17:32:41 +0200

Hi,

Following earlier advice on this list I am migrating from SCNetworkCheckReachabilityByName to the Panther API as demonstrated in this sample code: http://developer.apple.com/samplecode/SimpleReach/SimpleReach.html

My callback is called correctly each time the network changes, but as soon as CFReadStreamRead has been called because I started a download my SCNetworkReachabilityCallBack is no longer called when the network changes (also if the download has terminated long ago; I am calling CFReadStreamSetClient, CFReadStreamUnscheduleFromRunLoop, CFReadStreamClose and CFRelease to clean up after the download). If I don't call CFReadStreamRead netwrok changes are always reported instantly.

Anyone an idea what might be going on here? This is on 10.3.8

Thanks,

david.
_______________________________________________
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


  • Prev by Date: Re: CFHTTPMessage and HTTP headers
  • Next by Date: Socket "bind" isn't working for me.
  • Previous by thread: Re: CFHTTPMessage and HTTP headers
  • Next by thread: Socket "bind" isn't working for me.
  • Index(es):
    • Date
    • Thread