C++编写 win32控制台下 Socket通信 多线程 聊天室 服务器 客户端

上传者: gxquickly | 上传时间: 2021-06-22 10:09:42 | 文件大小: 5.41MB | 文件类型: RAR
文件包括:服务器项目、客户端项目、说明文档 C++语言编写,SOCKET套接字通信,分服务器和客户端,多线程模型,Win32控制台。 首先聊天室分为服务端和客户端,通过TCP连接通信。运行顺序为: 1.首先打开服务服; 2.打开客户端,用户输入名字,连接到服务端后得到一个ID; 3.用户可以看到所有在线用户和所有频道,用户间可以单独聊天,也可以进入聊天频道,或者自己创建一个频道。 4.聊天频道的管理员为创建者,创建者可以剔除其他用户、禁止特定用户加入(黑名单)、解散频道、转让频道管理员身份。

文件下载

资源详情

[{"title":"( 57 个子文件 5.41MB ) C++编写 win32控制台下 Socket通信 多线程 聊天室 服务器 客户端","children":[{"title":"设计思路.docx <span style='color:#111;'> 17.01KB </span>","children":null,"spread":false},{"title":"client2","children":[{"title":"client2.sln <span style='color:#111;'> 886B </span>","children":null,"spread":false},{"title":"debug","children":[{"title":"client2.exe <span style='color:#111;'> 52.00KB </span>","children":null,"spread":false},{"title":"client2.pdb <span style='color:#111;'> 539.00KB </span>","children":null,"spread":false},{"title":"client2.ilk <span style='color:#111;'> 411.18KB </span>","children":null,"spread":false}],"spread":true},{"title":"client2","children":[{"title":"ReadMe.txt <span style='color:#111;'> 950B </span>","children":null,"spread":false},{"title":"client2.cpp <span style='color:#111;'> 2.26KB </span>","children":null,"spread":false},{"title":"stdafx.h <span style='color:#111;'> 276B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"client2.pch <span style='color:#111;'> 1024.00KB </span>","children":null,"spread":false},{"title":"client2.exe.intermediate.manifest <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"vc80.idb <span style='color:#111;'> 275.00KB </span>","children":null,"spread":false},{"title":"mt.dep <span style='color:#111;'> 67B </span>","children":null,"spread":false},{"title":"client2.exe.embed.manifest.res <span style='color:#111;'> 468B </span>","children":null,"spread":false},{"title":"stdafx.obj <span style='color:#111;'> 10.33KB </span>","children":null,"spread":false},{"title":"BuildLog.htm <span style='color:#111;'> 6.37KB </span>","children":null,"spread":false},{"title":"client2.obj <span style='color:#111;'> 51.95KB </span>","children":null,"spread":false},{"title":"vc80.pdb <span style='color:#111;'> 244.00KB </span>","children":null,"spread":false},{"title":"client2.exe.embed.manifest <span style='color:#111;'> 403B </span>","children":null,"spread":false}],"spread":true},{"title":"stdafx.cpp <span style='color:#111;'> 212B </span>","children":null,"spread":false},{"title":"client2.vcproj.8DCCF92FDCE8HGT.Administrator.user <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"client2.vcproj.PC-201202182136.Administrator.user <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"client2.vcproj <span style='color:#111;'> 4.38KB </span>","children":null,"spread":false}],"spread":true},{"title":"client2.ncb <span style='color:#111;'> 5.66MB </span>","children":null,"spread":false},{"title":"client2.suo <span style='color:#111;'> 10.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"server2","children":[{"title":"debug","children":[{"title":"server2.ilk <span style='color:#111;'> 776.21KB </span>","children":null,"spread":false},{"title":"server2.pdb <span style='color:#111;'> 1.28MB </span>","children":null,"spread":false},{"title":"server2.exe <span style='color:#111;'> 200.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"server2.ncb <span style='color:#111;'> 7.46MB </span>","children":null,"spread":false},{"title":"server2.sln <span style='color:#111;'> 886B </span>","children":null,"spread":false},{"title":"server2.suo <span style='color:#111;'> 28.00KB </span>","children":null,"spread":false},{"title":"server2","children":[{"title":"ReadMe.txt <span style='color:#111;'> 950B </span>","children":null,"spread":false},{"title":"Client.h <span style='color:#111;'> 708B </span>","children":null,"spread":false},{"title":"Client.cpp <span style='color:#111;'> 551B </span>","children":null,"spread":false},{"title":"server2.vcproj.PC-201202182136.Administrator.user <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"Channel.h <span style='color:#111;'> 560B </span>","children":null,"spread":false},{"title":"server2.vcproj <span style='color:#111;'> 4.75KB </span>","children":null,"spread":false},{"title":"stdafx.h <span style='color:#111;'> 638B </span>","children":null,"spread":false},{"title":"split.cpp <span style='color:#111;'> 799B </span>","children":null,"spread":false},{"title":"Channel.cpp <span style='color:#111;'> 776B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"vc80.idb <span style='color:#111;'> 411.00KB </span>","children":null,"spread":false},{"title":"server2.exe.embed.manifest.res <span style='color:#111;'> 468B </span>","children":null,"spread":false},{"title":"mt.dep <span style='color:#111;'> 67B </span>","children":null,"spread":false},{"title":"communicate.obj <span style='color:#111;'> 446.82KB </span>","children":null,"spread":false},{"title":"Client.obj <span style='color:#111;'> 18.66KB </span>","children":null,"spread":false},{"title":"server2.exe.intermediate.manifest <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"stdafx.obj <span style='color:#111;'> 108.22KB </span>","children":null,"spread":false},{"title":"BuildLog.htm <span style='color:#111;'> 25.25KB </span>","children":null,"spread":false},{"title":"Channel.obj <span style='color:#111;'> 154.91KB </span>","children":null,"spread":false},{"title":"server2.pch <span style='color:#111;'> 9.69MB </span>","children":null,"spread":false},{"title":"server2.obj <span style='color:#111;'> 105.15KB </span>","children":null,"spread":false},{"title":"server2.exe.embed.manifest <span style='color:#111;'> 403B </span>","children":null,"spread":false},{"title":"split.obj <span style='color:#111;'> 225.31KB </span>","children":null,"spread":false},{"title":"vc80.pdb <span style='color:#111;'> 468.00KB </span>","children":null,"spread":false}],"spread":false},{"title":"stdafx.cpp <span style='color:#111;'> 212B </span>","children":null,"spread":false},{"title":"communicate.cpp <span style='color:#111;'> 35.27KB </span>","children":null,"spread":false},{"title":"server2.vcproj.8DCCF92FDCE8HGT.Administrator.user <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"server2.cpp <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

  • qq_37703292 :
    用VS还不错
    2018-05-28
  • lovetao914 :
    作为新手学习是可以使用的
    2018-02-12
  • songfang8044 :
    没下载成功,再次试一下
    2017-12-10
  • sinat_38252457 :
    为什么我的下载下来不能用,都是乱码?
    2017-10-19
  • gentlek :
    可用.但是不知道为什么在我进行一系列操作后就无法连接了
    2017-05-25

免责申明

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