Ping with Objective-C

0

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.

    
asked by anonymous 13.08.2014 / 03:41

1 answer

1

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:

  • Reachability by Apple
  • Reachability by Tony Million blocks)
  • 14.08.2014 / 17:10