首页 网络技术 网络基础     /    基于TCP协议编程的网络聊天室

基于TCP协议编程的网络聊天室

上传者: qq_34559890 | 上传时间:2024/6/19 19:31:08 | 文件大小:244KB | 文件类型:zip
基于TCP协议编程的网络聊天室
设计内容:基于TCP协议编程的方式,编写程序模拟网络聊天室的运行过程。
设计要求:1.采用C/S模式,基于TCP协议编程的方式,使得各个用户通过服务器转发实现聊天的功能。
2.分为两大模块:客户端模块和服务器端模块。
3.客户端模块的主要功能:1)登陆功能:用户可以注册,然后选择服务器登入聊天室。
2)显示用户:将在线用户显示在列表中。
3)接收信息:能接收其他用户发出的信息。
4)发送信息:能发出用户要发出的信息。
4.服务器端模块的主要功能:1)检验登陆信息:检查登陆信息是否正确,并向客户端返回登陆信息,如信息正确。
就允许用户登陆。
2)显示在线状态:将该用户的状态发给各在线用户。
3)转发聊天信息:将消息转发给所有在线的用户。
来源GitHub:wangzhe0828/ChatRoom,对代码加入了详细的注释。

文件下载

资源详情

[{"title":"(92个子文件244KB)基于TCP协议编程的网络聊天室","children":[{"title":"网络课设","children":[{"title":"ChatRoom-master","children":[{"title":".vs","children":[{"title":"ChatRoom","children":[{"title":"v14","children":[{"title":".suo <span style='color:#111;'>78.50KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"ChatRoom.sln <span style='color:#111;'>1.45KB</span>","children":null,"spread":false},{"title":"ChatRoom.v12.suo <span style='color:#111;'>67.50KB</span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'>946B</span>","children":null,"spread":false},{"title":"Chat_Client_V1","children":[{"title":"bin","children":[{"title":"Release","children":[{"title":"Chat_Client_V1.pdb <span style='color:#111;'>53.50KB</span>","children":null,"spread":false},{"title":"Chat_Client_V1.exe <span style='color:#111;'>24.50KB</span>","children":null,"spread":false},{"title":"Chat_Client_V1.vshost.exe.manifest <span style='color:#111;'>490B</span>","children":null,"spread":false},{"title":"Chat_Client_V1.vshost.exe <span style='color:#111;'>22.16KB</span>","children":null,"spread":false},{"title":"Chat_Client_V1.exe.config <span style='color:#111;'>182B</span>","children":null,"spread":false},{"title":"Chat_Client_V1.vshost.exe.config <span style='color:#111;'>182B</span>","children":null,"spread":false}],"spread":true},{"title":"Debug","children":[{"title":"Chat_Client_V1.pdb <span style='color:#111;'>57.50KB</span>","children":null,"spread":false},{"title":"Chat_Client_V1.exe <span style='color:#111;'>27.00KB</span>","children":null,"spread":false},{"title":"Chat_Client_V1.vshost.exe.manifest <span style='color:#111;'>490B</span>","children":null,"spread":false},{"title":"Chat_Client_V1.vshost.exe <span style='color:#111;'>22.16KB</span>","children":null,"spread":false},{"title":"Chat_Client_V1.exe.config <span style='color:#111;'>182B</span>","children":null,"spread":false},{"title":"Chat_Client_V1.vshost.exe.config <span style='color:#111;'>182B</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Program.cs <span style='color:#111;'>394B</span>","children":null,"spread":false},{"title":"Talking.resx <span style='color:#111;'>5.68KB</span>","children":null,"spread":false},{"title":"Chat_Client_V1.csproj.DotSettings.user <span style='color:#111;'>480B</span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Release","children":[{"title":"Chat_Client_V1.csproj.FileListAbsolute.txt <span style='color:#111;'>1.27KB</span>","children":null,"spread":false},{"title":"Chat_Client_V1.pdb <span style='color:#111;'>53.50KB</span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"Chat_Client_V1.csproj.GenerateResource.Cache <span style='color:#111;'>1.16KB</span>","children":null,"spread":false},{"title":"Chat_Client_V1.Login.resources <span style='color:#111;'>180B</span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'>6.99KB</span>","children":null,"spread":false},{"title":"Chat_Client_V1.exe <span style='color:#111;'>24.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":"TempPE","children":[{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'>3.50KB</span>","children":null,"spread":false}],"spread":false},{"title":"TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"Chat_Client_V1.SignUp.resources <span style='color:#111;'>180B</span>","children":null,"spread":false},{"title":"Chat_Client_V1.Properties.Resources.resources <span style='color:#111;'>248B</span>","children":null,"spread":false},{"title":"Chat_Client_V1.Talking.resources <span style='color:#111;'>180B</span>","children":null,"spread":false},{"title":"Chat_Client_V1.Main.resources <span style='color:#111;'>180B</span>","children":null,"spread":false}],"spread":false},{"title":"Debug","children":[{"title":"Chat_Client_V1.csprojResolveAssemblyReference.cache <span style='color:#111;'>2.16KB</span>","children":null,"spread":false},{"title":"Chat_Client_V1.csproj.FileListAbsolute.txt <span style='color:#111;'>2.32KB</span>","children":null,"spread":false},{"title":"Chat_Client_V1.pdb <span style='color:#111;'>57.50KB</span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"Chat_Client_V1.csproj.GenerateResource.Cache <span style='color:#111;'>1.16KB</span>","children":null,"spread":false},{"title":"Chat_Client_V1.Login.resources <span style='color:#111;'>180B</span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'>6.98KB</span>","children":null,"spread":false},{"title":"Chat_Client_V1.exe <span style='color:#111;'>27.00KB</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;'>1.42KB</span>","children":null,"spread":false},{"title":"TempPE","children":[{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'>4.50KB</span>","children":null,"spread":false}],"spread":false},{"title":"TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"Chat_Client_V1.SignUp.resources <span style='color:#111;'>180B</span>","children":null,"spread":false},{"title":"Chat_Client_V1.Properties.Resources.resources <span style='color:#111;'>248B</span>","children":null,"spread":false},{"title":"Chat_Client_V1.Talking.resources <span style='color:#111;'>180B</span>","children":null,"spread":false},{"title":"Chat_Client_V1.Main.resources <span style='color:#111;'>180B</span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"Main.resx <span style='color:#111;'>5.68KB</span>","children":null,"spread":false},{"title":"Talking.cs <span style='color:#111;'>3.26KB</span>","children":null,"spread":false},{"title":"Talking.Designer.cs <span style='color:#111;'>4.29KB</span>","children":null,"spread":false},{"title":"Login.resx <span style='color:#111;'>5.68KB</span>","children":null,"spread":false},{"title":"Main.cs <span style='color:#111;'>11.45KB</span>","children":null,"spread":false},{"title":"SignUp.resx <span style='color:#111;'>5.68KB</span>","children":null,"spread":false},{"title":"SignUp.cs <span style='color:#111;'>4.07KB</span>","children":null,"spread":false},{"title":"Login.Designer.cs <span style='color:#111;'>8.04KB</span>","children":null,"spread":false},{"title":"Chat_Client_V1.csproj <span style='color:#111;'>4.54KB</span>","children":null,"spread":false},{"title":"SignUp.Designer.cs <span style='color:#111;'>6.33KB</span>","children":null,"spread":false},{"title":"App.config <span style='color:#111;'>182B</span>","children":null,"spread":false},{"title":"Main.Designer.cs <span style='color:#111;'>8.52KB</span>","children":null,"spread":false},{"title":"Login.cs <span style='color:#111;'>3.66KB</span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Resources.resx <span style='color:#111;'>5.46KB</span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'>242B</span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'>1.29KB</span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'>1.05KB</span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'>2.77KB</span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"Chat_Server_cmd","children":[{"title":"bin","children":[{"title":"Release","children":null,"spread":false},{"title":"Debug","children":[{"title":"Chat_Server_cmd.exe.config <span style='color:#111;'>182B</span>","children":null,"spread":false},{"title":"info.xml <span style='color:#111;'>514B</span>","children":null,"spread":false},{"title":"Chat_Server_cmd.pdb <span style='color:#111;'>23.50KB</span>","children":null,"spread":false},{"title":"Chat_Server_cmd.vshost.exe <span style='color:#111;'>22.16KB</span>","children":null,"spread":false},{"title":"Chat_Server_cmd.vshost.exe.config <span style='color:#111;'>182B</span>","children":null,"spread":false},{"title":"Chat_Server_cmd.v12.suo <span style='color:#111;'>4.50KB</span>","children":null,"spread":false},{"title":"Chat_Server_cmd.exe <span style='color:#111;'>12.00KB</span>","children":null,"spread":false},{"title":"Chat_Server_cmd.vshost.exe.manifest <span style='color:#111;'>490B</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Program.cs <span style='color:#111;'>15.49KB</span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Release","children":[{"title":"TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'>6.56KB</span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs <span style='color:#111;'>0B</span>","children":null,"spread":false}],"spread":true},{"title":"Debug","children":[{"title":"Chat_Server_cmd.pdb <span style='color:#111;'>23.50KB</span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"Chat_Server_cmd.csproj.FileListAbsolute.txt <span style='color:#111;'>1.12KB</span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'>6.56KB</span>","children":null,"spread":false},{"title":"Chat_Server_cmd.exe <span style='color:#111;'>12.00KB</span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"Chat_Server_cmd.csprojResolveAssemblyReference.cache <span style='color:#111;'>1.71KB</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"User.cs <span style='color:#111;'>1.08KB</span>","children":null,"spread":false},{"title":"Chat_Server_cmd.csproj <span style='color:#111;'>2.49KB</span>","children":null,"spread":false},{"title":"App.config <span style='color:#111;'>182B</span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'>1.29KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

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