有没有人对如何编写这样的应用程序有任何建议?或者也许知道一些不错的教程?我想使用 System.Net.PeerToPeer 命名空间,但我能找到的关于它的所有内容都是 MSDN,我读不下去就会生气。或者也许使用“老式”TCP/IP 会更有效?
我会感激每一条建议。我将用黄金沐浴每个示例代码;)
请不要将我送回 Google,因为我已经搜索了很长时间以寻找有用的东西 - 可能不准确,但时间不多了,我真的需要一些帮助。
[编辑]
那Brunet library呢? ?有人用过吗?
最佳答案
MSDN 上有一个您可能会感兴趣的示例:Peer Channel Chat .
引自页面:
The Chat sample demonstrates how to implement a multiparty chat application by using Peer Channel. Messages sent by any instance of a chat application are received by all other instances.
The Chat sample is not based on the concept of client and service. It is a true peer-to-peer application with each instance acting as a peer of other instances. Each instance can send messages to other instances and receive messages from other instances using the IChat duplex contract.
关于c# - .NET 和 P2P - 编写 P2P 信使,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2496080/