iPhone SDK reachabilityWithAddress issue

后端 未结 1 1743
心在旅途
心在旅途 2020-12-19 23:10

I need to check connectivity with IP address only. I\'m trying to do it with Apple Reachability class, using reachabilityWithAddress option. And my problem is I can put any

相关标签:
1条回答
  • 2020-12-19 23:56

    Instead of using the Reachability classes, go old-school and open a TCP connection to it. If the response to connect() is EHOSTUNREACH, then you can't. If the response is ECONNREFUSED, or a successful connection, then you can.

    0 讨论(0)
提交回复
热议问题