开发者

Check Reachability of Secure Connection on custom Port on iPhone?

i want to check if an Secure-Connection to an IP-Adress and an custo开发者_JS百科m Port is possible. I checked the Reachability Sample from Apple, but with this i can only check if a Host is reachable.

Any ideas?

Thank you


The reachability API is primarily focused on the status of the device's network interfaces, not whether a particular host is available to talk.

The only way to test availability of an IP address and port is to try to establish a connection. Nevertheless, you can integrate it with the reachability API so that you only attempt to connect when there is an interface (wi-fi or cell) that can reach that host.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜