Thank you, very much, for the response.
I looked at the Reachability class, poked at it a bit, but I wasn't getting
consistent results. After some investigation I found a check I prefer for
local network detection, it might not "hold water" in the long run however.
When doing a System.Net.Dns.BeginGetHostentry() async operation, the end
results are:
Network available and all is well
<one or more valid addresses, no loopback>
Airplane mode enabled
<loopback and one or more valid addresses>
Network unavailable
<loopback only>
So checking for the presence of loopback seems to reliably tell me if the
local network is functional or not in either the airplane mode or network
unavailable situation.
I don't really like basing tests on observed conditions as those can change
from IOS version to IOS version. I'll take another look at Reachability.
Thanks again for the response!
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/Checking-local-network-availability-tp4655233p4655264.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch