积极答复者
System.Net.PeerToPeer 是如何进行数据通讯的?

问题
答案
-
你可不可以运行一下代码,再看下输出呢,下面两行不是传输数据了吗
pnReg.Comment = "up to 39 unicode char comment" ;pnReg.Data = System.Text.Encoding .UTF8.GetBytes("A data blob associated with the name" );
Best regards,
Riquel
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- 已标记为答案 Cocker Lee 2009年9月23日 4:41
全部回复
-
你好,
看下这两篇文章,会有帮助:
Writing Peer-to-Peer Applications Using .NET, Part 1 (PNRP)
http://blogs.msdn.com/p2p/archive/2007/03/12/writing-peer-to-peer-applications-using-net-part-1-pnrp.aspx
.NET P2P: Writing Peer-to-Peer Networked Apps with the Microsoft .NET Framework
http://msdn.microsoft.com/en-us/magazine/cc301833.aspx
Best regards,
Riquel
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- 已标记为答案 Riquel_DongModerator 2009年9月11日 1:33
- 取消答案标记 Cocker Lee 2009年9月13日 6:41
-
你好,
上面那篇Blog刚好给你了一个完整的例子关于如何使用写P2P程序使用这个namespace,你仔细看下。英文不好可以学习呀,你可以找一个词霸(lingoes或是金山)自己查不知道的单词来看,英文技术文章都是很简单的,请自己努力一下,还有看下Code – Resolve a Peer Name 的代码,自己研究一下也就明白了。最好的办法是运行下代码,你就清楚了。
Best regards,
Riquel
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us. -
再怎么看,也没发现那里涉及到数据交换,不过是在对对等网络进行注册、登录、查询操作!
- 已标记为答案 Cocker Lee 2009年9月13日 6:45
- 取消答案标记 Cocker Lee 2009年9月13日 6:45
-
你可不可以运行一下代码,再看下输出呢,下面两行不是传输数据了吗
pnReg.Comment = "up to 39 unicode char comment" ;pnReg.Data = System.Text.Encoding .UTF8.GetBytes("A data blob associated with the name" );
Best regards,
Riquel
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- 已标记为答案 Cocker Lee 2009年9月23日 4:41