是否有可能在iOS应用程序中使用rsync? [英] Is it possible to use rsync inside of iOS app?

查看:187
本文介绍了是否有可能在iOS应用程序中使用rsync?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以在iPhone或iPad应用程序中使用rsync lib吗?或者也许有适合sftp远程文件同步的替代方案?

is it possible to use rsync lib inside of an iPhone or iPad app? Or maybe there are any alternatives suitable for remote file sync over sftp?

推荐答案

我必须关闭这个问题因为此刻那里只有少数可能的解决方案,它们都没有开箱即用。

I have to close this question because at the moment there are only few possible solutions and neither of them runs 'out of the box'.

我在AppSote上找到了几个程序,它们以某种方式模仿rsync功能,所以毕竟使用rsync是可能的,但不是看起来那么简单。

I have found several programs on the AppSote which somehow mimics rsync functionality so after all using rsync is possible, however not so simple as it seems.

修改rsync把它变成一个库是可行的,但这不是其中一个程序的作者怎么做的。这样做会使应用程序受到GPL的限制,但Apple不允许这样做。

Modifiying rsync to turn it into a library is feasible, but this is not how author of one of these programs did it. Doing so would subject app to GPL, which not permitted by Apple.

还有其他方法,例如 http://search.cpan.org/~leakin/File-Rsync-0.42/Rsync.pm (一个perl模块)和 https://github.com/kolosy/rsync.net (c#)。

There are other approaches, such as http://search.cpan.org/~leakin/File-Rsync-0.42/Rsync.pm (a perl module), and https://github.com/kolosy/rsync.net (c#).

我怀疑自iOS 5.0发布以来,有人真的需要iphone的rsync lib。然而,人们可能需要它来支持一些遗留代码,但即便从头开始重写rsync lib也是值得怀疑的,因为它是一个复杂的工具,这个任务肯定需要两三个月。

I doubt someone would really need rsync lib for iphone since iOS 5.0 was released. However one may need it to support some legacy code, but even then rewriting rsync lib from scratch is questionable, because it is complex tool and this task certainly will take more than two or three month.

这篇关于是否有可能在iOS应用程序中使用rsync?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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