Linux下C实现的聊天室.rar

上传者: ccj2020 | 上传时间: 2020-01-08 03:00:25 | 文件大小: 77KB | 文件类型: rar
实现目标 一个在Linux下可以使用的聊天软件,要求至少实现如下功能: 1. 采用Client/Server架构 2. Client A 登陆聊天服务器前,需要注册自己的ID和密码 3. 注册成功后,Client A 就可以通过自己的ID和密码登陆聊天服务器 4. 多个Client X 可以同时登陆聊天服务器之后,与其他用户进行通讯聊天 5. Client A成功登陆后可以查看当前聊天室内其他在线用户Client x 6. Client A可以选择发消息给某个特定的Client X,即”悄悄话”功能 7. Client A 可以选择发消息全部的在线用户,即”群发消息”功能 8. Client A 在退出时需要保存聊天记录 9. Server端维护一个所有登陆用户的聊天会的记录文件,以便备查 可以选择实现的附加功能: 1. Server可以内建一个特殊权限的账号admin,用于管理聊天室 2. Admin可以将某个Client X “提出聊天室” 3. Admin可以将某个Client X ”设为只能旁听,不能发言” 4. Client 端发言增加表情符号,可以设置某些自定义的特殊组合来表达感情.如输入:),则会自动发送”XXX向大家做了个笑脸” 5. Client段增加某些常用话语,可以对其中某些部分进行”姓名替换”,例如,输入/ClientA/welcome,则会自动发送”ClientA 大侠,欢迎你来到咱们的聊天室” 附加功能: 文件传输

文件下载

资源详情

[{"title":"( 83 个子文件 77KB ) Linux下C实现的聊天室.rar","children":[{"title":"Linux下C实现的聊天室","children":[{"title":"client","children":[{"title":"chat_log","children":null,"spread":false},{"title":"admin <span style='color:#111;'> 590B </span>","children":null,"spread":false},{"title":"client <span style='color:#111;'> 22.97KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"admin","children":[{"title":"admin.c <span style='color:#111;'> 6.76KB </span>","children":null,"spread":false},{"title":"admin.o <span style='color:#111;'> 6.19KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 125B </span>","children":null,"spread":false}],"spread":true},{"title":"log","children":[{"title":"log.o <span style='color:#111;'> 5.32KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 120B </span>","children":null,"spread":false},{"title":"log.c <span style='color:#111;'> 4.65KB </span>","children":null,"spread":false}],"spread":true},{"title":"interface","children":[{"title":"interface.o <span style='color:#111;'> 2.16KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 138B </span>","children":null,"spread":false},{"title":"interface.c <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false}],"spread":true},{"title":"client_main","children":[{"title":"client_main.o <span style='color:#111;'> 2.46KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 142B </span>","children":null,"spread":false},{"title":"client_main.c <span style='color:#111;'> 2.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"handlestr","children":[{"title":"handlestr.o <span style='color:#111;'> 2.19KB </span>","children":null,"spread":false},{"title":"handlestr.c <span style='color:#111;'> 2.73KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 138B </span>","children":null,"spread":false}],"spread":true},{"title":"my_system_call","children":[{"title":"my_system_call.o <span style='color:#111;'> 2.63KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 154B </span>","children":null,"spread":false},{"title":"my_system_call.c <span style='color:#111;'> 5.27KB </span>","children":null,"spread":false}],"spread":true},{"title":"my_str","children":[{"title":"my_str.c <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"my_str.o <span style='color:#111;'> 948B </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 74B </span>","children":null,"spread":false}],"spread":true},{"title":"register","children":[{"title":"register.c <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 135B </span>","children":null,"spread":false},{"title":"register.o <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false}],"spread":true},{"title":"handlerecvmsg","children":[{"title":"handlerecvmsg.o <span style='color:#111;'> 4.01KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 150B </span>","children":null,"spread":false},{"title":"handlerecvmsg.c <span style='color:#111;'> 3.96KB </span>","children":null,"spread":false}],"spread":false},{"title":"handlefile","children":[{"title":"handlefile.c <span style='color:#111;'> 2.03KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 141B </span>","children":null,"spread":false},{"title":"handlefile.o <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"script","children":[{"title":"makefile <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false}],"spread":true},{"title":"makefile <span style='color:#111;'> 115B </span>","children":null,"spread":false},{"title":"include","children":[{"title":"client_main.h <span style='color:#111;'> 927B </span>","children":null,"spread":false},{"title":"client_handle.h <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"my_system_call.h <span style='color:#111;'> 327B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"server","children":[{"title":"chat_log_server","children":null,"spread":false},{"title":"src","children":[{"title":"server_view","children":[{"title":"server_view.c <span style='color:#111;'> 915B </span>","children":null,"spread":false},{"title":"server_view.o <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 143B </span>","children":null,"spread":false}],"spread":true},{"title":"server_chat","children":[{"title":"server_chat.c <span style='color:#111;'> 1.95KB </span>","children":null,"spread":false},{"title":"server_chat.o <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 143B </span>","children":null,"spread":false}],"spread":true},{"title":"db","children":[{"title":"chat.db <span style='color:#111;'> 3.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"server_admin","children":[{"title":"server_admin.o <span style='color:#111;'> 2.23KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 146B </span>","children":null,"spread":false},{"title":"server_admin.c <span style='color:#111;'> 1.98KB </span>","children":null,"spread":false}],"spread":true},{"title":"server_trans","children":[{"title":"server_trans.o <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"server_trans.c <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 146B </span>","children":null,"spread":false}],"spread":true},{"title":"my_system_call","children":[{"title":"my_system_call.o <span style='color:#111;'> 2.63KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 153B </span>","children":null,"spread":false},{"title":"my_system_call.c <span style='color:#111;'> 5.27KB </span>","children":null,"spread":false}],"spread":true},{"title":"server_login_exit","children":[{"title":"server_login_exit.o <span style='color:#111;'> 2.66KB </span>","children":null,"spread":false},{"title":"server_login_exit.c <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 161B </span>","children":null,"spread":false}],"spread":true},{"title":"my_str","children":[{"title":"my_str.c <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"my_str.o <span style='color:#111;'> 948B </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 74B </span>","children":null,"spread":false}],"spread":true},{"title":"check","children":[{"title":"check.o <span style='color:#111;'> 3.59KB </span>","children":null,"spread":false},{"title":"check.c <span style='color:#111;'> 3.75KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 117B </span>","children":null,"spread":false}],"spread":true},{"title":"linklist","children":[{"title":"linklist.o <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"linklist.c <span style='color:#111;'> 2.06KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 104B </span>","children":null,"spread":false},{"title":"linklist.c.bak <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false}],"spread":false},{"title":"server_reg","children":[{"title":"server_reg.o <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 140B </span>","children":null,"spread":false},{"title":"server_reg.c <span style='color:#111;'> 779B </span>","children":null,"spread":false}],"spread":false},{"title":"server","children":[{"title":"server.c.bak <span style='color:#111;'> 7.25KB </span>","children":null,"spread":false},{"title":"makefile <span style='color:#111;'> 121B </span>","children":null,"spread":false},{"title":"server.o <span style='color:#111;'> 5.22KB </span>","children":null,"spread":false},{"title":"server.c <span style='color:#111;'> 7.28KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"script","children":[{"title":"makefile <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false}],"spread":true},{"title":"makefile <span style='color:#111;'> 115B </span>","children":null,"spread":false},{"title":"server <span style='color:#111;'> 20.59KB </span>","children":null,"spread":false},{"title":"include","children":[{"title":"server_handle.h.bak <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"check.h <span style='color:#111;'> 747B </span>","children":null,"spread":false},{"title":"linklist.h.bak <span style='color:#111;'> 597B </span>","children":null,"spread":false},{"title":"server_handle.h <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"linklist.h <span style='color:#111;'> 792B </span>","children":null,"spread":false},{"title":"my_system_call.h <span style='color:#111;'> 327B </span>","children":null,"spread":false},{"title":"server.h <span style='color:#111;'> 399B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

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