点对点的文件传输的C# [英] Peer to Peer file transfer c#

查看:196
本文介绍了点对点的文件传输的C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找在谷歌和我似乎无法找到有关点对点传输任何东西。

Hey, I have been looking on google and I cannot seem to find anything about peer to peer transfer.

基本上,我希望能够发送一个文件从我的计算机到别人的电脑。没有人知道任何指南,可以帮助我?

Basically, I want to be able to send a file from my computer to someone else's computer. Does anyone know of any guides that can help me with this?

感谢。

推荐答案

如果你真的只是想从我的电脑发送文件到别人的电脑使用C#,那么你可能不会找真正的P2P。你可以使用原始TCP。为此,您需要在远程计算机上的的一个连接,您的计算机的打开的远程计算机的连接,并开始发送数据。

If you really just want to "send a file from my computer to someone else's computer" using C# then you may not be looking for true p2p. You can just use raw TCP. For this you need the remote computer to listen for a connection, your computer to open a connection to the remote computer, and start sending data.

有一个关于如何做这样的事情的这里

There's a very basic example on how to do something like that here.

如果您的的实际上是寻找真正的P2P那么你最好使用现有的P2P网络(否则会出现人,但你和它另一台电脑)。有少数的C#BitTorrent的库周围 - 例如 BitSharp TorrentNet 。有一个关于用纯C#的BitTorrent库整体问题。

If you are actually looking for true P2P then you're best off using an existing P2P network (otherwise there will be nobody but you and your other computer on it). There are a few C# BitTorrent libraries around - for example BitSharp, TorrentNet. There is a whole question about BitTorrent libraries written in pure C#.

这篇关于点对点的文件传输的C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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