Detecting Internet
Detecting Internet
- Subject: Detecting Internet
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Fri, 14 Jul 2006 11:12:25 +0200
When my app runs on a computer which connects to the internet via the
internal modem then the SCNetworkReachability... functions work very
well.
If no internet is available Safari shows a page "You are not
connected to the..." immediately, and [NSHost hostWithName: ] returns
nil at once.
But when the computer accesses the internet through the Build-in
Ethernet then the reachability functions don't help.
And in this case Safari takes 2 minutes to detect the absence of an
internet connection; NSHost takes 1 minute to return nil.
Question: how can my app know whether the internet would be accessed
via internal modem or via Build-in Ethernet?
I have read the stuff in /Developer/ADC Reference Library/
documentation/Networking/Reference/SysConfig/ but I did not get any
wiser.
Any hints would be very welcome.
Gerriet.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden