C# p2p 库可以像 p2p 程序一样共享文件吗?

发布于 2024-11-11 07:03:24 字数 534 浏览 7 评论 0原文

我正在开发一个应用程序,需要将文件分发给多个同行。据我了解,p2p 是从具有相同文件的对等方下载文件块,这使得下载过程更快。

我的例子是:

有Peer A(充当服务器),Peer B,Peer C和Peer D。Peer

B,C和D将需要在某个时间段更新或接收新文件。因此,如果对等点 A(服务器)上有任何更改或新文件,对等点 B、C 和 D 将需要检索它以进行更新。

所以我在这里想象的是,对于我的情况,p2p 应该像这样工作:

对等点 B 从服务器 A 接收/拉取文件,对等点 C 也会从对等点 A 和对等点 B 拉取/接收文件块(就像 p2p 技术一样激流等)。对等点 D 也是如此,它将从对等点 A、B 和 C 拉取/接收文件块。

所以从某种意义上说,它是 p2p。

我的问题是,有没有一种技术可以帮助我进行这种文件分发?我希望能够简化这个网络部分。

那里有这样的图书馆吗?

我的应用程序的图形表示

i am developing an application which requires the distribution of files to several peers. as i understand about p2p is that it downloads chunks of the file from peers who has the same file which makes the download process faster.

my example is:

there is Peer A(which acts as server),Peer B,Peer C and Peer D.

Peer B,C and D will need to update or receive new file at a certain period. so if there's any changes or new files on peer A(server), peer B,C and D will need to retrieve it for update purpose.

so what im picturing here is that p2p should work like this for my situation:

Peer B receives/pulls the files from server A, peer C than will also pull/receives chunk of the files from Peer A AND peer B(like p2p tech like torrent and etc.). same goes with peer D which will pull/receive chunk of the files from peer A,B and C.

so in a sense, it's p2p.

my question is, is there a tech out there that will help me do this kind of file distribution? i was hoping there to ease this networking part.

is there such library out there?

the graphical representation of my application

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

披肩女神 2024-11-18 07:03:24

您是否考虑过使用 BitTorrent

BitTorrent 协议可用于减少分发大型文件对服务器和网络的影响。 BitTorrent 协议允许用户加入主机“群”,同时从彼此下载和上传,而不是从单个源服务器下载文件。

有一个名为 MonoTorrent 的 .NET 实现。

Have you considered using BitTorrent?

The BitTorrent protocol can be used to reduce the server and network impact of distributing even large files. Rather than downloading a file from a single source server, the BitTorrent protocol allows users to join a "swarm" of hosts to download and upload from each other simultaneously.

There's a .NET implementation called MonoTorrent.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文