C#实现UDP简单聊天室功能(winform版)

上传者: 42684368 | 上传时间: 2021-05-22 09:31:52 | 文件大小: 287KB | 文件类型: ZIP
开发工具使用的是VS2017,基于UDP协议实现的一个简单聊天室功能,包括客户端和服务器端,首先运行服务器端,接着调试->启动新实例开启多个客户端,每开启一个客户端,服务器端会显示XXX连接等提示。客户端发送消息给服务器,服务器将消息转发给其他客户端实现一个客户端通讯的过程。注意需要将客户端连服务器端IP地址改成自己的,否则没反应(udpClient.cs 19行)

文件下载

资源详情

[{"title":"( 60 个子文件 287KB ) C#实现UDP简单聊天室功能(winform版)","children":[{"title":"UDP_Winform","children":[{"title":"UDP_Client","children":[{"title":"udpClient.cs <span style='color:#111;'> 5.53KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"UDP_Client.pdb <span style='color:#111;'> 31.50KB </span>","children":null,"spread":false},{"title":"UDP_Client.exe.config <span style='color:#111;'> 189B </span>","children":null,"spread":false},{"title":"UDP_Client.exe <span style='color:#111;'> 10.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"Release","children":null,"spread":false}],"spread":true},{"title":"obj","children":[{"title":"Debug","children":[{"title":"UDP_Client.pdb <span style='color:#111;'> 31.50KB </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"UDP_Client.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"UDP_Client.csproj.GenerateResource.cache <span style='color:#111;'> 1016B </span>","children":null,"spread":false},{"title":"UDP_Client.csproj.CoreCompileInputs.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 7.05KB </span>","children":null,"spread":false},{"title":"UDP_Client.exe <span style='color:#111;'> 10.50KB </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"UDP_Client.udpClient.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"UDP_Client.csprojAssemblyReference.cache <span style='color:#111;'> 11.22KB </span>","children":null,"spread":false},{"title":"UDP_Client.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.72KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"Properties","children":[{"title":"Resources.Designer.cs <span style='color:#111;'> 2.77KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false}],"spread":true},{"title":"Program.cs <span style='color:#111;'> 526B </span>","children":null,"spread":false},{"title":"udpClient.Designer.cs <span style='color:#111;'> 3.51KB </span>","children":null,"spread":false},{"title":"UDP_Client.csproj <span style='color:#111;'> 3.54KB </span>","children":null,"spread":false},{"title":"udpClient.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"App.config <span style='color:#111;'> 189B </span>","children":null,"spread":false}],"spread":true},{"title":"UDP_Server","children":[{"title":"udpServer.Designer.cs <span style='color:#111;'> 2.16KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"UDP_Server.exe <span style='color:#111;'> 9.50KB </span>","children":null,"spread":false},{"title":"UDP_Server.exe.config <span style='color:#111;'> 189B </span>","children":null,"spread":false},{"title":"UDP_Server.pdb <span style='color:#111;'> 29.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"Release","children":null,"spread":false}],"spread":true},{"title":"obj","children":[{"title":"Debug","children":[{"title":"UDP_Server.exe <span style='color:#111;'> 9.50KB </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 831B </span>","children":null,"spread":false},{"title":"UDP_Server.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false},{"title":"UDP_Server.csproj.CoreCompileInputs.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"UDP_Server.csproj.GenerateResource.cache <span style='color:#111;'> 1016B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 7.05KB </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"UDP_Server.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"UDP_Server.pdb <span style='color:#111;'> 29.50KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"UDP_Server.udpServer.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"UDP_Server.csprojAssemblyReference.cache <span style='color:#111;'> 11.22KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"Properties","children":[{"title":"Resources.Designer.cs <span style='color:#111;'> 2.77KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false}],"spread":true},{"title":"Program.cs <span style='color:#111;'> 526B </span>","children":null,"spread":false},{"title":"UDP_Server.csproj <span style='color:#111;'> 3.54KB </span>","children":null,"spread":false},{"title":"udpServer.cs <span style='color:#111;'> 4.18KB </span>","children":null,"spread":false},{"title":"App.config <span style='color:#111;'> 189B </span>","children":null,"spread":false},{"title":"udpServer.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false}],"spread":true},{"title":".vs","children":[{"title":"UDP","children":[{"title":"v15","children":[{"title":".suo <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"UDP_Winform","children":[{"title":"v15","children":[{"title":".suo <span style='color:#111;'> 71.50KB </span>","children":null,"spread":false},{"title":"Server","children":[{"title":"sqlite3","children":[{"title":"db.lock <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"storage.ide <span style='color:#111;'> 624.00KB </span>","children":null,"spread":false},{"title":"storage.ide-shm <span style='color:#111;'> 32.00KB </span>","children":null,"spread":false},{"title":"storage.ide-wal <span style='color:#111;'> 1.00MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"UDP_Winform.sln <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明