Does anyone have a class that does the ping test in Objective-C? I tried several and I did not get any.
I just need to get the IP and test, if it "ping" execute the action, from the counter, only issue an inaccessible host message.
Does anyone have a class that does the ping test in Objective-C? I tried several and I did not get any.
I just need to get the IP and test, if it "ping" execute the action, from the counter, only issue an inaccessible host message.
The best and most sophisticated way for you to test to see if a host is accessible on iOS is by using a concept called Reachability.
Reachability checks that the device "reaches" the destination through a particular network route and can also notify your app when the network is modified.
Two references that can help you a lot: