Ping与iPhone SDK [英] Ping with iPhone SDK

查看:66
本文介绍了Ping与iPhone SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在iPhone应用程式中执行网路连线,但 NSHost 是iPhone OS不受支援的架构。有人知道其他工具或技术来实现类似的功能吗?

I need to do a network ping in an iPhone app, but NSHost is an unsupported framework for iPhone OS. Does anybody know of other tools or techniques to achive similar functionality?

推荐答案

搜索可达性。有一个战利品在例如。 this SO问题。有了这个,您可以测试是否可以访问主机。

Search for Reachability. Have a loot at e.g. this SO question. With this, you can test if a host can be reached.

HTH

这篇关于Ping与iPhone SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆