Page 1 of 1

Checking Network Connectivity

Posted: Mon Sep 05, 2011 5:57 pm
by xclntdesign
I have recently found the commands relating to checking network reachability on an iPhone, but I don't quite understand how it works.

I set the Reachability Target and was able to check it, but I can't seem to figure out how to see if the host name is actually reachable. I see that the reachabilityChanged message is delivered, but I can't find where so that I can parse the reachbilityInfo.

Can anyone help me? Thanks!

Re: Checking Network Connectivity

Posted: Tue Sep 06, 2011 9:04 am
by Mark
Hi,

Where did you find those commands? It is easier if we know what you're talking about. There are no such commands in the dictionary.

Kind regards,

Mark

Re: Checking Network Connectivity

Posted: Tue Sep 06, 2011 2:35 pm
by FourthWorld
In the iOS Release Notes is a section titled "Network reachability checking (experimental)", which describes the range of possible values for the reachabilityInfo.

Re: Checking Network Connectivity

Posted: Tue Sep 06, 2011 11:05 pm
by Nikovash
The best way I found to deal with it is to set the iPhone reachability and respond to the status change? Message or whatever it is named.