基于Linux的TCP多人聊天室

上传者: 50874851 | 上传时间: 2022-05-25 09:05:30 | 文件大小: 20.61MB | 文件类型: RAR
Ubuntu16.04 Linux平台 C语言编写,采用CS模型,TCP、UDP网络协议实现的内网多人聊天室。 服务器:采用多线程以及线程锁处理客户端的所有请求以及信息转发任务。服务端实时显示客户的登录与登出信息;保存客户上传的共享文件(网盘功能);保存客户的账号密码信息,记录在线用户。 客户端:打开时可选择登录或者注册,登陆成功后由服务端记录为在线用户,同一个账号同一时间只能登录一个,后登录的会将已经在线的同个账号挤下线(异地登陆)。登陆后可以选择群聊、私聊、上传文件到共享网盘、查看网盘的文件或下载、选择指定在线用户发送文件。多线程实时显示接收到的消息并显示来源,接收到文件发送请求后可选择是否接收。

文件下载

资源详情

[{"title":"( 27 个子文件 20.61MB ) 基于Linux的TCP多人聊天室","children":[{"title":"chat_room_project","children":[{"title":"Services <span style='color:#111;'> 18.38KB </span>","children":null,"spread":false},{"title":"Clients <span style='color:#111;'> 22.45KB </span>","children":null,"spread":false},{"title":"演示视频2.mp4 <span style='color:#111;'> 42.89MB </span>","children":null,"spread":false},{"title":"Services_Shared_file","children":[{"title":"b.txt <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"c.txt <span style='color:#111;'> 40B </span>","children":null,"spread":false},{"title":"a.txt <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"1.txt <span style='color:#111;'> 21B </span>","children":null,"spread":false},{"title":"兰亭集序.txt <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false}],"spread":true},{"title":"Services_Clients_inf","children":[{"title":"wantth.txt <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"xm.txt <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"dante.txt <span style='color:#111;'> 20B </span>","children":null,"spread":false},{"title":"hy.txt <span style='color:#111;'> 20B </span>","children":null,"spread":false},{"title":"xh.txt <span style='color:#111;'> 20B </span>","children":null,"spread":false}],"spread":true},{"title":"Clients_2","children":[{"title":"Clients <span style='color:#111;'> 22.45KB </span>","children":null,"spread":false},{"title":"Clients_file","children":[{"title":"b.txt <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"2.txt <span style='color:#111;'> 22B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Clients.h <span style='color:#111;'> 883B </span>","children":null,"spread":false},{"title":"Clients.c <span style='color:#111;'> 17.91KB </span>","children":null,"spread":false},{"title":"Clients_file","children":[{"title":"cc.txt <span style='color:#111;'> 40B </span>","children":null,"spread":false},{"title":"aaaa.txt <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"bbb.txt <span style='color:#111;'> 6B </span>","children":null,"spread":false}],"spread":true},{"title":"Services.h <span style='color:#111;'> 1.69KB </span>","children":null,"spread":false},{"title":"Clients_1","children":[{"title":"Clients <span style='color:#111;'> 22.45KB </span>","children":null,"spread":false},{"title":"Clients_file","children":[{"title":"a.txt <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"1.txt <span style='color:#111;'> 21B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Services.c <span style='color:#111;'> 16.68KB </span>","children":null,"spread":false},{"title":"commom.h <span style='color:#111;'> 2.69KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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