文件名称:P2Pprogram
- 所属分类:
- .net编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 195kb
- 下载次数:
- 0次
- 提 供 者:
- 余**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
使用了.net2005集成开发环境,用C#语言进行编写,所以此可执行程序运行需要在.net fr a mework2.0环境下。使用套接字基于UDP协议进行网络编程,实现了混合式P2P通信,达到资源(这里资源是一个句子)共享,混合式即有一个中心(索引)服务器,若干个客户端,客户端通过中心服务器进行组网,中心服务器负责记录每个客户端的IP、端口和其提供的关键字以及所请求的关键字,把客户端请求的关键字与已经连进此网络的客户端们所提供的关键字进行匹配,若相等则把有此资源的客户端IP和端口发送给请求者,这样请求者就可以和有资源的客户端进行通信而得到资源,换句话说,中心服务器就是一个中转站,为客户端的提供其要找的内容所在的地方。根据上面的思想,编写一个服务器端和客户端。
(系统自动生成,下载前可以参看下载内容)
下载文件列表
P2Pprogram
..........\UDPp2pclient
..........\............\UDPp2pclient
..........\............\............\bin
..........\............\............\...\Debug
..........\............\............\Form1.cs
..........\............\............\Form1.Designer.cs
..........\............\............\Form1.resx
..........\............\............\obj
..........\............\............\...\Debug
..........\............\............\...\UDPp2pclient.csproj.FileList.txt
..........\............\............\Program.cs
..........\............\............\Properties
..........\............\............\..........\AssemblyInfo.cs
..........\............\............\..........\Resources.Designer.cs
..........\............\............\..........\Resources.resx
..........\............\............\..........\Settings.Designer.cs
..........\............\............\..........\Settings.settings
..........\............\............\UDPp2pclient.csproj
..........\............\UDPp2pclient.sln
..........\............\UDPp2pclient.suo
..........\UDPp2pserver
..........\............\UDPp2pserver
..........\............\............\bin
..........\............\............\...\Debug
..........\............\............\Form1.cs
..........\............\............\Form1.Designer.cs
..........\............\............\Form1.resx
..........\............\............\obj
..........\............\............\...\Debug
..........\............\............\...\UDPp2pserver.csproj.FileList.txt
..........\............\............\Program.cs
..........\............\............\Properties
..........\............\............\..........\AssemblyInfo.cs
..........\............\............\..........\Resources.Designer.cs
..........\............\............\..........\Resources.resx
..........\............\............\..........\Settings.Designer.cs
..........\............\............\..........\Settings.settings
..........\............\............\UDPp2pserver.csproj
..........\............\UDPp2pserver.sln
..........\............\UDPp2pserver.suo
..........\说明文档.doc
..........\UDPp2pclient
..........\............\UDPp2pclient
..........\............\............\bin
..........\............\............\...\Debug
..........\............\............\Form1.cs
..........\............\............\Form1.Designer.cs
..........\............\............\Form1.resx
..........\............\............\obj
..........\............\............\...\Debug
..........\............\............\...\UDPp2pclient.csproj.FileList.txt
..........\............\............\Program.cs
..........\............\............\Properties
..........\............\............\..........\AssemblyInfo.cs
..........\............\............\..........\Resources.Designer.cs
..........\............\............\..........\Resources.resx
..........\............\............\..........\Settings.Designer.cs
..........\............\............\..........\Settings.settings
..........\............\............\UDPp2pclient.csproj
..........\............\UDPp2pclient.sln
..........\............\UDPp2pclient.suo
..........\UDPp2pserver
..........\............\UDPp2pserver
..........\............\............\bin
..........\............\............\...\Debug
..........\............\............\Form1.cs
..........\............\............\Form1.Designer.cs
..........\............\............\Form1.resx
..........\............\............\obj
..........\............\............\...\Debug
..........\............\............\...\UDPp2pserver.csproj.FileList.txt
..........\............\............\Program.cs
..........\............\............\Properties
..........\............\............\..........\AssemblyInfo.cs
..........\............\............\..........\Resources.Designer.cs
..........\............\............\..........\Resources.resx
..........\............\............\..........\Settings.Designer.cs
..........\............\............\..........\Settings.settings
..........\............\............\UDPp2pserver.csproj
..........\............\UDPp2pserver.sln
..........\............\UDPp2pserver.suo
..........\说明文档.doc