多客户端聊天服务器实现

上传者: 42455006 | 上传时间: 2022-04-29 09:06:54 | 文件大小: 1.21MB | 文件类型: 7Z
主要功能有注册,聊天(私聊和群聊),离线/注销等,代码分为两部分,具体readme有文档解释,是使用python多线程实现的。 以下是案例 Server $ python server.py SERVER WORKING Client (127.0.0.1, 51638) connected [ tesla ] Client (127.0.0.1, 51641) connected [ albert ] Client (127.0.0.1, 51641) is offline [ albert ] Client $ python client.py localhost CREATING NEW ID: Enter username: tesla Welcome to chat room. Enter 'tata' anytime to exit You: Hello albert joined the conversation albert: world albert left the conversation You:

文件下载

资源详情

[{"title":"( 10 个子文件 1.21MB ) 多客户端聊天服务器实现","children":[{"title":"群聊","children":[{"title":"server.py <span style='color:#111;'> 3.00KB </span>","children":null,"spread":false},{"title":"client1.png <span style='color:#111;'> 20.33KB </span>","children":null,"spread":false},{"title":"client.py <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"server1.png <span style='color:#111;'> 7.48KB </span>","children":null,"spread":false},{"title":"Readme.docx <span style='color:#111;'> 15.54KB </span>","children":null,"spread":false},{"title":"client2.png <span style='color:#111;'> 10.45KB </span>","children":null,"spread":false}],"spread":true},{"title":"主要实现私聊","children":[{"title":"Readme.docx <span style='color:#111;'> 1.05MB </span>","children":null,"spread":false},{"title":"udpClient(1)Modified.py <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false},{"title":"流程图.pdf <span style='color:#111;'> 146.66KB </span>","children":null,"spread":false},{"title":"udpServer(1)Modified.py <span style='color:#111;'> 2.83KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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