Re: Monitoring host reachability and the SCNetwork API
Re: Monitoring host reachability and the SCNetwork API
- Subject: Re: Monitoring host reachability and the SCNetwork API
- From: Allan Nathanson <email@hidden>
- Date: Thu, 16 Apr 2009 14:28:54 -0400
Good catch!
- Allan
On Apr 16, 2009, at 2:25 PM, Jeff Johnson wrote:
On Apr 16, 2009, at 1:02 PM, Jeremy W. Sherman wrote:
I am connected to the Internet. But checking reachability of
google.com via SCNetworkCheckReachabilityByName("google.com", &flags)
yields flags of 0x0002, kSCNetworkConnectionRequired. The results of
using an SCNetworkReachability installed on the runloop agree: a
connection is required, and cannot be automatically established.
Are you sure you're interpreting those flags correctly?
kSCNetworkFlagsTransientConnection = 1<<0,
kSCNetworkFlagsReachable = 1<<1,
kSCNetworkFlagsConnectionRequired = 1<<2,
_______________________________________________
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