Server Ping with iPhone [英] Server Ping with iPhone

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

问题描述

我正在编写一个应用程序,需要知道哪两个服务器响应最快。一个服务器在我的时区,另一个服务器很远。

I'm writing an app that needs to know which of two servers responds fastest. One server is in my time zone, the other is far away.

如何通过iPhone上的服务器ping获得往返时间?

我看了Reachability,我认为在这种情况下我不需要它。也欢迎替代解决方案。谢谢!

How do I get the round trip time from a server ping on the iPhone?
I looked at Reachability, and I don't think it does what I need in this case. Alternate solutions are welcome as well. Thanks!

推荐答案

您可以使用 ping - source

或者,Apple有一个示例App你可以看一下 - SimplePing

Or, Apple has an example App you can look at - SimplePing

另一个选择是使用现有的lib: http:// www。 kernelthread.com/projects/hanoi/html/icmp.html

Another option is to use an existing lib: http://www.kernelthread.com/projects/hanoi/html/icmp.html

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

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