这两份代码是基于linux环境和Qt写的服务器和客户端的聊天室程序,使用了底层linux socket的API,linux的多路转换epoll写的和tinyxml库 基本实现了高并发的即时聊天,也写了除了聊天框之外的交互。 学习该份代码需掌握tinyxml库,stl库,设计模式的单例模式等
这份代码是上一份代码的更新版,增加了创建房间且可以带有密码的功能,和发送文件的功能。
Qt版本为5.9.0,linux版本为乌班图18.04
注:代码里面的端口默认为8889,IP为127.0.0.1。
作者QQ:919371374
注解:https://blog.csdn.net/weixin_40393500 基于epoll和Qt的聊天室