c# - .NET 和 P2P - 编写 P2P 信使

标签 c# .net vb.net p2p

有没有人对如何编写这样的应用程序有任何建议?或者也许知道一些不错的教程?我想使用 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/

相关文章:

c# - AppDomain 不应该引起的异常?

c# - 使用 IEnumerable 时针对单个报告

c# - 如何取消 tailable 游标上的 MoveNext 操作

用于查找的 C# 最佳 IDictionary 用法,可能找不到

c# - 实现资源管理器ContextMenu并将多个文件传递到一个程序实例

javascript - Document.getElementById ('Button' ).click();不触发代码隐藏

c# - 修改 XAML 文件

c# - 如何使用 NLog 配置 API 将 NULL 写入数据库中的列?

c# - 在 Visual Web Developer 2010 Express 中运行 "working"Web 应用程序时出错

mysql - 使用 Insert 命令 Upsert 到 MySQL DB