I am developing a MAC OSX Desktop application , in that for checking reachability of particular ip i always use
system("ping -c 3 192.168.10.1")
Is this a good way or any other way is there. I tried apple reachability class but result is not as expected. I also tried using AFNetworking but no good result. With this system call i am getting good result, but i wanted to know the disadvantages in using it or any other best way that works.