Use of CFReadStreamRead interferes with SCNetworkReachabilityCallBack
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