Ping with Objective-C

Asked

Viewed 63 times

0

Does anyone have a ping test class in Objective-C? I tried several and could not with any.

I just need to take the IP and do the test, if "drip" perform the action, against, just send an inaccessible host message.

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 whether the device "reaches" the destination via a particular network route and can also notify your app when this network is modified.

Two references that can help you a lot:

  1. Reachability by Apple
  2. Reachability by Tony Million (based on blocks)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.