C# p2p 库可以像 p2p 程序一样共享文件吗?
我正在开发一个应用程序,需要将文件分发给多个同行。据我了解,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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否考虑过使用 BitTorrent?
有一个名为 MonoTorrent 的 .NET 实现。
Have you considered using BitTorrent?
There's a .NET implementation called MonoTorrent.