On Fri, Jan 29, 2010 at 2:37 PM, Jens Alfke <j...@mooseyard.com> wrote: > > On Jan 29, 2010, at 11:12 AM, Laurent Daudelin wrote: > >> I was able to determined that when the connection is down, I found out that >> kSCNetworkFlagsConnectionRequired was true, so it seems to work. It's just >> difficult to determine what exactly the flags mean. > > This can be confusing. Connection-required is for things like dial-up modems: > it means the host isn't reachable now, but may be if an action is taken to > make a connection (like dialing a modem.) This isn't really useful any more, > but it used to be that the app could look up which interface supported the > connection, then either autodial or prompt you whether you wanted to connect. > > These days you can pretty much treat that flag as meaning "no connection".
Dialup is more common than you might think. Millions of people still use it, either because it's cheap or it's all they can get, and a lot of those people have Macs. "Connection required" is *far* more common than you might think. It applies not only to dialup, but to things like PPPoE, which is extremely common for DSL connections. If the Mac is connected directly to the DSL modem, it will use PPPoE. If the PPPoE connection is set up not to be connected all the time, and if the user isn't actively using the internet at the time, the PPPoE connection could very easily be disconnected, and Reachability will return kSCNetworkFlagsConnectionRequired in that case. Mike _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com