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: Jeff Johnson <email@hidden>
- Date: Thu, 16 Apr 2009 13:25:40 -0500
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,
-Jeff
_______________________________________________
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