适用于iPhone的网络时间协议 [英] Network Time Protocol for iPhone

查看:124
本文介绍了适用于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

这篇关于适用于iPhone的网络时间协议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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