Command-Line-ChatRoom:使用多线程和 TCP、UDP 连接用 C++ 编写的 Linux 多房间聊天

上传者: 42101164 | 上传时间: 2023-03-13 15:45:27 | 文件大小: 764KB | 文件类型: ZIP
C++
命令行聊天室 使用多线程和 TCP、UDP 连接用 C++ 编写的 Linux 多房间聊天 与服务器的连接基于 tcp,在每个房间或私人聊天中,连接都是基于 UDP 的 P2P

文件下载

资源详情

[{"title":"( 84 个子文件 764KB ) Command-Line-ChatRoom:使用多线程和 TCP、UDP 连接用 C++ 编写的 Linux 多房间聊天","children":[{"title":"Command-Line-ChatRoom-master","children":[{"title":"README.md <span style='color:#111;'> 245B </span>","children":null,"spread":false},{"title":".idea","children":[{"title":"misc.xml <span style='color:#111;'> 214B </span>","children":null,"spread":false},{"title":"encodings.xml <span style='color:#111;'> 166B </span>","children":null,"spread":false},{"title":"vcs.xml <span style='color:#111;'> 182B </span>","children":null,"spread":false},{"title":"scopes","children":[{"title":"scope_settings.xml <span style='color:#111;'> 139B </span>","children":null,"spread":false}],"spread":true},{"title":"Command-Line-ChatRoom.iml <span style='color:#111;'> 286B </span>","children":null,"spread":false},{"title":".name <span style='color:#111;'> 21B </span>","children":null,"spread":false},{"title":"modules.xml <span style='color:#111;'> 296B </span>","children":null,"spread":false}],"spread":true},{"title":"Client","children":[{"title":"src","children":[{"title":"TCPMessengerClient.cpp <span style='color:#111;'> 8.98KB </span>","children":null,"spread":false},{"title":"TCPMessengerClient.h <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"TCPSocket.h <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false},{"title":"TCPSocket.cpp <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false},{"title":"UDPSocket.cpp <span style='color:#111;'> 2.22KB </span>","children":null,"spread":false},{"title":"MThread.cpp <span style='color:#111;'> 550B </span>","children":null,"spread":false},{"title":"UDPSocket.h <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"Session.cpp <span style='color:#111;'> 1004B </span>","children":null,"spread":false},{"title":"Room.h <span style='color:#111;'> 959B </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 5.90KB </span>","children":null,"spread":false},{"title":"TCPMessengerProtocol.h <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"MThread.h <span style='color:#111;'> 301B </span>","children":null,"spread":false},{"title":"Session.h <span style='color:#111;'> 502B </span>","children":null,"spread":false},{"title":"Room.cpp <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false}],"spread":false},{"title":"Debug","children":[{"title":"src","children":[{"title":"UDPSession.o <span style='color:#111;'> 193.66KB </span>","children":null,"spread":false},{"title":"UDPSession.d <span style='color:#111;'> 161B </span>","children":null,"spread":false},{"title":"TCPSocket.d <span style='color:#111;'> 143B </span>","children":null,"spread":false},{"title":"main.d <span style='color:#111;'> 336B </span>","children":null,"spread":false},{"title":"subdir.mk <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"Room.d <span style='color:#111;'> 137B </span>","children":null,"spread":false},{"title":"TCPSocket.o <span style='color:#111;'> 225.63KB </span>","children":null,"spread":false},{"title":"UDPSocket.o <span style='color:#111;'> 223.35KB </span>","children":null,"spread":false},{"title":"UDPSocket.d <span style='color:#111;'> 78B </span>","children":null,"spread":false},{"title":"MThread.o <span style='color:#111;'> 126.59KB </span>","children":null,"spread":false},{"title":"MThread.d <span style='color:#111;'> 70B </span>","children":null,"spread":false},{"title":"TCPMessengerClient.o <span style='color:#111;'> 262.77KB </span>","children":null,"spread":false},{"title":"TCPMessengerClient.d <span style='color:#111;'> 367B </span>","children":null,"spread":false},{"title":"Session.d <span style='color:#111;'> 149B </span>","children":null,"spread":false},{"title":"main.o <span style='color:#111;'> 259.29KB </span>","children":null,"spread":false},{"title":"Session.o <span style='color:#111;'> 193.65KB </span>","children":null,"spread":false},{"title":"Room.o <span style='color:#111;'> 309.14KB </span>","children":null,"spread":false}],"spread":false},{"title":"objects.mk <span style='color:#111;'> 241B </span>","children":null,"spread":false},{"title":"sources.mk <span style='color:#111;'> 528B </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"Client <span style='color:#111;'> 330.99KB </span>","children":null,"spread":false}],"spread":true},{"title":".project <span style='color:#111;'> 807B </span>","children":null,"spread":false},{"title":".cproject <span style='color:#111;'> 12.65KB </span>","children":null,"spread":false}],"spread":true},{"title":"Server","children":[{"title":"src","children":[{"title":"Broker.h <span style='color:#111;'> 421B </span>","children":null,"spread":false},{"title":"Login.cpp <span style='color:#111;'> 2.59KB </span>","children":null,"spread":false},{"title":"ChatRoom.cpp <span style='color:#111;'> 3.08KB </span>","children":null,"spread":false},{"title":"UserDetails.cpp <span style='color:#111;'> 812B </span>","children":null,"spread":false},{"title":"UserDetails.h <span style='color:#111;'> 537B </span>","children":null,"spread":false},{"title":"Dispatcher.cpp <span style='color:#111;'> 10.31KB </span>","children":null,"spread":false},{"title":"Login.h <span style='color:#111;'> 605B </span>","children":null,"spread":false},{"title":"TCPMessengerServer.h <span style='color:#111;'> 740B </span>","children":null,"spread":false},{"title":"TCPMessengerServer.cpp <span style='color:#111;'> 2.61KB </span>","children":null,"spread":false},{"title":"TCPSocket.h <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"TCPSocket.cpp <span style='color:#111;'> 2.94KB </span>","children":null,"spread":false},{"title":"MThread.cpp <span style='color:#111;'> 520B </span>","children":null,"spread":false},{"title":"ChatRoom.h <span style='color:#111;'> 592B </span>","children":null,"spread":false},{"title":"Broker.cpp <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"Dispatcher.h <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"MultipleTCPSocketsListener.h <span style='color:#111;'> 780B </span>","children":null,"spread":false},{"title":"MultipleTCPSocketsListener.cpp <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":"TCPMessengerProtocol.h <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"MThread.h <span style='color:#111;'> 230B </span>","children":null,"spread":false}],"spread":false},{"title":"Debug","children":[{"title":"src","children":[{"title":"TCPMessengerServer.d <span style='color:#111;'> 528B </span>","children":null,"spread":false},{"title":"Broker.d <span style='color:#111;'> 443B </span>","children":null,"spread":false},{"title":"TCPSocket.d <span style='color:#111;'> 143B </span>","children":null,"spread":false},{"title":"main.d <span style='color:#111;'> 497B </span>","children":null,"spread":false},{"title":"ChatRoom.d <span style='color:#111;'> 447B </span>","children":null,"spread":false},{"title":"subdir.mk <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"User.o <span style='color:#111;'> 226.93KB </span>","children":null,"spread":false},{"title":"MultipleTCPSocketsListener.d <span style='color:#111;'> 254B </span>","children":null,"spread":false},{"title":"UserDetails.d <span style='color:#111;'> 191B </span>","children":null,"spread":false},{"title":"MThread.o <span style='color:#111;'> 126.59KB </span>","children":null,"spread":false},{"title":"Dispatcher.d <span style='color:#111;'> 451B </span>","children":null,"spread":false},{"title":"MThread.d <span style='color:#111;'> 70B </span>","children":null,"spread":false},{"title":"User.d <span style='color:#111;'> 163B </span>","children":null,"spread":false},{"title":"Login.d <span style='color:#111;'> 441B </span>","children":null,"spread":false}],"spread":false},{"title":"objects.mk <span style='color:#111;'> 241B </span>","children":null,"spread":false},{"title":"sources.mk <span style='color:#111;'> 528B </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false}],"spread":true},{"title":".project <span style='color:#111;'> 807B </span>","children":null,"spread":false},{"title":".cproject <span style='color:#111;'> 13.13KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

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