C++ 的 P2P 库

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10982062/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 14:41:46  来源:igfitidea点击:

P2P library for C++

c++p2p

提问by abergmeier

Is there any good cross-platform C++ library for P2P networking (preferably UDP but TCP would work also). Originally I planned to use libjinglebut since they do not provide any precompiled libraries and sport a quite messy build system I currently set it aside as too complicated.

是否有用于 P2P 网络的好的跨平台 C++ 库(最好是 UDP,但 TCP 也可以)。最初我计划使用libjingle但由于它们不提供任何预编译库并且运行一个非常混乱的构建系统,我目前将其搁置为太复杂。

回答by secmask

libtorrent.orgbuild on top of boost, boost-asio is a library for P2P work good for me. It implement BitTorrent protocol, using TCP for transport data, TCP/UDP for peer exchange.

libtorrent.org建立在 boost 之上,boost-asio 是一个对我来说很好的 P2P 库。它实现了 BitTorrent 协议,使用 TCP 传输数据,使用 TCP/UDP 进行对等交换。

回答by selbie

libnice- Implements ICE protocol.

libnice- 实现 ICE 协议。

回答by Eugene Mayevski 'Callback

One possible option is our MsgConnectproduct. Open-source license is available.

一种可能的选择是我们的MsgConnect产品。开源许可证可用。

回答by wolfgang

libjingle can be a pain to compile,but it's very powerful and the api is pretty straight forward, the sample applications help you learn and understand it better.

libjingle 编译起来可能很麻烦,但它非常强大,而且 api 非常简单,示例应用程序可以帮助您更好地学习和理解它。

回答by Sdra

Tribler.org:

特里布勒网站

it a cross-platform p2p client but it offer its open source APIas well. It implements many non standard features like P2P video streaming, DHT, Merkle Hashes, repex, NAT and firewall puncturing, ...

它是一个跨平台的 p2p 客户端,但它也提供其开源API。它实现了许多非标准功能,如 P2P 视频流、DHT、Merkle Hashes、repex、NAT 和防火墙穿刺,...

Its engine is part of an European-founded video streaming project: p2p-next.

它的引擎是欧洲建立的视频流项目的一部分:p2p-next

Unfortunately it's written in python, but you can wrap it in c++ or even generate c++ libraries out of python.

不幸的是,它是用 python 编写的,但你可以用 c++ 包装它,甚至用 python 生成 c++ 库。

Alternatively: libswift

或者:libswift