文件同步库
我正在研究允许我通过网络同步信息的 C/C++ 库 (Win/Linux)。我想要运行程序的多个实例(在不同的 PC 上),并且想要在本地同步文件,而不是通过网络在单个位置远程访问文件。
如果所有实例要保持数据库一致性,它还需要注意任何消息传递错误,因此需要一个确认机制。
我偶然发现了几个解决方案,但我仍在尝试找出最好的解决方案。
欢迎提出任何建议,并随时询问任何澄清。
编辑
我一直在研究enet和UDT,有人有使用它们的经验吗?
I'm looking into C/C++ libraries (Win/Linux) that allow me to synchronize information over network. I want to run multiple instances of my program (on different PC's), and want to synchronize files locally instead of accessing files remotely over the network at a single location.
If all instances are to maintain DB consistency it also needs to bee aware of any message delivery errors, so an ack mechanism is necessary.
I stumbled into a couple of solutions, but I'm still trying to figure out what my best solution would be.
Any suggestions are appreciated and feel free to ask about any clarifications.
Edit
I've been looking into enet and UDT does anyone has any experience using them?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这样的东西的设计空间相当巨大,但它让我想起了前几天看到的一个很酷的库,巨大。这个想法是,它是一个空间表示的分布式发布/订阅模型。也许它适合您的目的。
如果您对文件同步最感兴趣,另一件事可能会立即有用 - librsync。从外观上看,它实现了 rsync delta 算法。
I think the design space for such a thing is pretty huge, but it reminded me of a kinda cool library I saw the other day, VAST. The idea is that it's a spatially-represented distributed publish/subscribe model. Maybe it is adaptable to your purpose.
Another thing that is probably immediately useful if you are most interested in file synchronisation -- librsync. It implements the rsync delta algorithm, by the looks.