.NET和P2P - 写一个P2P的使者 [英] .NET and P2P - writing a P2P messenger

查看:186
本文介绍了.NET和P2P - 写一个P2P的使者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人有任何意见如何编写这样的应用程序?或者,也许知道一些不错的教程?我想用System.Net.PeerToPeer命名空间,但一切我可以找到它是MSDN,我不能没有惹毛了阅读。或者,也许用老派TCP / IP会更有效率?

Does anyone have any advice how to write such app? Or maybe knows some nice tutorial? I would like to use System.Net.PeerToPeer namespace, but everything I can find about it is MSDN which I can't read without getting mad. Or maybe using "old-school" TCP/IP would more efficient?

我会感谢所有的建议。每一个示例代码,我会用金淋浴;)

I will appreciate every piece of advice. Every sample code I will shower with gold ;)

和请,因为我已经寻找了很长时间用得着不要送我回谷歌 - 也许不准确但时间已经不多了,我真的需要一些帮助。

And please, don't send me back to Google for I have searched for a long time for sth useful - maybe inaccurately but time is running out and I really need some help.

结果
怎么样的布鲁库? ?有没有人使用它

[edit]
What about the Brunet library? Has anyone used it?

推荐答案

有在MSDN的样本,你会发现有趣:的Peer频道聊天

There is a sample at MSDN that you may find interesting: 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.

在聊天样品不是基于客户机和服务的
的概念。它是一个
真正的对等应用程序以
各自实例​​充当
其它情况下的对等体。每个实例可以
发送消息给其他实例和
接收使用iChat的双面合同其他实例
的消息。

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.

这篇关于.NET和P2P - 写一个P2P的使者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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