├── CMakeLists.txt ├── README.md ├── autobuild.sh ├── bin ├── ChatClient └── ChatServer ├── include ├── public.hpp └── server │ ├── chatserver.hpp │ ├── chatservice.hpp │ ├── db │ └── db.h │ ├── model │ ├── friendmodel.hpp │ ├── group.hpp │ ├── groupmodel.hpp │ ├── groupuser.hpp │ ├── offlinemessagemodel.hpp │ ├── user.hpp │ └── usermodel.hpp │ └── redis │ └── redis.hpp ├── src ├── CMakeLists.txt ├── client │ ├── CMakeLists.txt │ └── main.cpp └── server │ ├── CMakeLists.txt │ ├── chatserver.cpp │ ├── chatservice.cpp │ ├── db │ └── db.cpp │ ├── main.cpp │ ├── model │ ├── friendmoel.cpp │ ├── groupmodel.cpp │ ├── offlinemessagemodel.cpp │ └── usermodel.cpp │ └── redis │ └── redis.cpp ├── test ├── testjson │ ├── json.hpp │ ├── testjson │ └── testjson.cpp └── testmuduo │ ├── CMakeLists.txt │ └── muduo_server.cpp └── thirdparty └── json.hpp /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # chatserver 2 | 可以工作在nginx tcp负载均衡环境中的集群聊天服务器和客户端源码 基于muduo实现 3 | -------------------------------------------------------------------------------- /autobuild.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/autobuild.sh -------------------------------------------------------------------------------- /bin/ChatClient: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/bin/ChatClient -------------------------------------------------------------------------------- /bin/ChatServer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/bin/ChatServer -------------------------------------------------------------------------------- /include/public.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/include/public.hpp -------------------------------------------------------------------------------- /include/server/chatserver.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/include/server/chatserver.hpp -------------------------------------------------------------------------------- /include/server/chatservice.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/include/server/chatservice.hpp -------------------------------------------------------------------------------- /include/server/db/db.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/include/server/db/db.h -------------------------------------------------------------------------------- /include/server/model/friendmodel.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/include/server/model/friendmodel.hpp -------------------------------------------------------------------------------- /include/server/model/group.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/include/server/model/group.hpp -------------------------------------------------------------------------------- /include/server/model/groupmodel.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/include/server/model/groupmodel.hpp -------------------------------------------------------------------------------- /include/server/model/groupuser.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/include/server/model/groupuser.hpp -------------------------------------------------------------------------------- /include/server/model/offlinemessagemodel.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/include/server/model/offlinemessagemodel.hpp -------------------------------------------------------------------------------- /include/server/model/user.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/include/server/model/user.hpp -------------------------------------------------------------------------------- /include/server/model/usermodel.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/include/server/model/usermodel.hpp -------------------------------------------------------------------------------- /include/server/redis/redis.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/include/server/redis/redis.hpp -------------------------------------------------------------------------------- /src/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/src/CMakeLists.txt -------------------------------------------------------------------------------- /src/client/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/src/client/CMakeLists.txt -------------------------------------------------------------------------------- /src/client/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/src/client/main.cpp -------------------------------------------------------------------------------- /src/server/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/src/server/CMakeLists.txt -------------------------------------------------------------------------------- /src/server/chatserver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/src/server/chatserver.cpp -------------------------------------------------------------------------------- /src/server/chatservice.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/src/server/chatservice.cpp -------------------------------------------------------------------------------- /src/server/db/db.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/src/server/db/db.cpp -------------------------------------------------------------------------------- /src/server/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/src/server/main.cpp -------------------------------------------------------------------------------- /src/server/model/friendmoel.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/src/server/model/friendmoel.cpp -------------------------------------------------------------------------------- /src/server/model/groupmodel.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/src/server/model/groupmodel.cpp -------------------------------------------------------------------------------- /src/server/model/offlinemessagemodel.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/src/server/model/offlinemessagemodel.cpp -------------------------------------------------------------------------------- /src/server/model/usermodel.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/src/server/model/usermodel.cpp -------------------------------------------------------------------------------- /src/server/redis/redis.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/src/server/redis/redis.cpp -------------------------------------------------------------------------------- /test/testjson/json.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/test/testjson/json.hpp -------------------------------------------------------------------------------- /test/testjson/testjson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/test/testjson/testjson -------------------------------------------------------------------------------- /test/testjson/testjson.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/test/testjson/testjson.cpp -------------------------------------------------------------------------------- /test/testmuduo/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/test/testmuduo/CMakeLists.txt -------------------------------------------------------------------------------- /test/testmuduo/muduo_server.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/test/testmuduo/muduo_server.cpp -------------------------------------------------------------------------------- /thirdparty/json.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fixbug666/chatserver/HEAD/thirdparty/json.hpp --------------------------------------------------------------------------------