P2PChatRoom:基于Qt的P2P聊天软件实现,主要由多个聊天客户端和一个中心注册服务器组成

上传者: 42134878 | 上传时间: 2022-06-06 15:44:45 | 文件大小: 969KB | 文件类型: ZIP
P2P聊天软件设计 功能要求 用户界面(GUI)可自行设计,主要为用户提供方便。 用户界面要及时的对用户的操作做出React。 要实现一个用户可以和多个用户同时进行聊天。 设计目标及流程 设计一个P2P聊天软件,由多个聊天客户端和一个中心服务器组成。各个聊天客户端可以两两相互发送消息。目的在于设计GUI、多线程和套接字编程。各个客户端用IP地址和TCP/IP监听端口号进行标识。每个客户提供一个名字,方便其它客户端。 此设计由两部分组成。 第一部分:注册 P2P聊天中各个成员管理。每个成员称为一个peer,要有一个中心的服务处理peer的登记和对已经登记的peer进行更新。 步骤1:一个peer选择一个名字,通过登记界面进行登记。 步骤2:服务器拥有一个公有IP,在一个众所周知的端口进行监听。Peer向服务器发送‘register’请求,同时发送自己的登记信息(如己取的名字,自己的监听端口号

文件下载

资源详情

[{"title":"( 49 个子文件 969KB ) P2PChatRoom:基于Qt的P2P聊天软件实现,主要由多个聊天客户端和一个中心注册服务器组成","children":[{"title":"P2PChatRoom-master","children":[{"title":"LICENSE <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"ChatClient","children":[{"title":"chatconnection.cpp <span style='color:#111;'> 6.71KB </span>","children":null,"spread":false},{"title":"peerinfo.cpp <span style='color:#111;'> 621B </span>","children":null,"spread":false},{"title":"peerinfo.h <span style='color:#111;'> 528B </span>","children":null,"spread":false},{"title":"ChatClient.pro <span style='color:#111;'> 714B </span>","children":null,"spread":false},{"title":"debug.log <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"images","children":[{"title":"icon.rc <span style='color:#111;'> 41B </span>","children":null,"spread":false},{"title":"chatroom.ico <span style='color:#111;'> 66.06KB </span>","children":null,"spread":false}],"spread":true},{"title":"registerconnection.cpp <span style='color:#111;'> 6.11KB </span>","children":null,"spread":false},{"title":"registerconnection.h <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false},{"title":"logindialog.h <span style='color:#111;'> 979B </span>","children":null,"spread":false},{"title":"chatdialog.cpp <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":"logindialog.cpp <span style='color:#111;'> 5.16KB </span>","children":null,"spread":false},{"title":"chatserver.cpp <span style='color:#111;'> 583B </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"chatdialog.h <span style='color:#111;'> 987B </span>","children":null,"spread":false},{"title":"chatLog.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"mainwindow.cpp <span style='color:#111;'> 15.11KB </span>","children":null,"spread":false},{"title":"mainwindow.h <span style='color:#111;'> 2.07KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 23.37KB </span>","children":null,"spread":false},{"title":"chatconnection.h <span style='color:#111;'> 2.60KB </span>","children":null,"spread":false},{"title":"header.h <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"chatserver.h <span style='color:#111;'> 508B </span>","children":null,"spread":false},{"title":"ChatClient.pro.user <span style='color:#111;'> 22.83KB </span>","children":null,"spread":false}],"spread":false},{"title":"RegisterServer","children":[{"title":"peerinfo.cpp <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"peerinfo.h <span style='color:#111;'> 674B </span>","children":null,"spread":false},{"title":"debug.log <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"images","children":[{"title":"icon.rc <span style='color:#111;'> 39B </span>","children":null,"spread":false},{"title":"server.ico <span style='color:#111;'> 66.06KB </span>","children":null,"spread":false}],"spread":true},{"title":"registerconnection.cpp <span style='color:#111;'> 6.21KB </span>","children":null,"spread":false},{"title":"window.cpp <span style='color:#111;'> 12.47KB </span>","children":null,"spread":false},{"title":"RegisterServer.pro <span style='color:#111;'> 585B </span>","children":null,"spread":false},{"title":"registerconnection.h <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false},{"title":"registerserver.cpp <span style='color:#111;'> 547B </span>","children":null,"spread":false},{"title":"window.h <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false},{"title":"registerLog.txt <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"registerserver.h <span style='color:#111;'> 537B </span>","children":null,"spread":false},{"title":"RegisterServer.pro.user <span style='color:#111;'> 22.78KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 23.29KB </span>","children":null,"spread":false},{"title":"header.h <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false}],"spread":false},{"title":"Material","children":[{"title":"register_gui.jpg <span style='color:#111;'> 14.83KB </span>","children":null,"spread":false},{"title":"chat_dialog.jpg <span style='color:#111;'> 43.71KB </span>","children":null,"spread":false},{"title":"client_gui.jpg <span style='color:#111;'> 19.84KB </span>","children":null,"spread":false},{"title":"register_server_gui.jpg <span style='color:#111;'> 45.91KB </span>","children":null,"spread":false},{"title":"client_gui2.jpg <span style='color:#111;'> 20.81KB </span>","children":null,"spread":false},{"title":"chat_dialog2.jpg <span style='color:#111;'> 47.21KB </span>","children":null,"spread":false},{"title":"P2P聊天软件设计文档.pdf <span style='color:#111;'> 910.22KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 3.84KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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