适用于iPhone的网络时间协议

适用于iPhone的网络时间协议

问题描述:

我正在编写一个需要精确计时的应用程序。在询问了这个问题之后,我决定使用NTP进行调查简单的NTP。

I am writing an application that requires accurate timing. After asking this question, I have decided to investigate using NTP or maybe Simple NTP.

iPhone是否有这些协议的开源实现?到目前为止,我已经设法找到一个链接。我也知道NTP有 C参考实施,所以我试着看多少它需要努力使其在iPhone上运行。

Is there any open source implementation of these protocols for the iPhone? So far I have managed to find a broken link. I am also aware that NTP has a C reference implementation, so I am trying to see how much effort it would require to make it work on the iPhone.

更新:我认为我有一个工作链接,但它是Wayback机器,它只保存文本,不是文件有效的链接

Update: I thought I had a working link, but it is to the Wayback Machine, which only saves text, not files link that works.

有一个名为 ios-ntp 。我过去曾在一个项目中使用它,它似乎工作得相当好。

There's a small iOS library named ios-ntp. I have used it in one project in the past and it seemed to work reasonably well.

截至2013年中原来的ios-ntp项目有一些缺失的部分,所以我已经将原始的svn存储库镜像到github。您可以在此处查看代码的工作版本: https://github.com/jessedc/iOS- ntp

As of mid 2013 the original ios-ntp project has a few missing pieces, so I have mirrored the original svn repository to github. You can checkout out a working version of the code here: https://github.com/jessedc/iOS-ntp