开发者

Check Reachability of Secure Connection on custom Port on iPhone?

开发者 https://www.devze.com 2023-01-28 12:09 出处:网络
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

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

精彩评论

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

关注公众号