Skip to content

基于 muduo 网络库的集群聊天服务器, 通过 nginx 进行负载均衡, redis 实现消息订阅

Notifications You must be signed in to change notification settings

ChaXxl/ChatServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

├── bin
│   └── ChatServer
├── build
├── CMakeLists.txt
├── include
│   ├── public.hpp
│   └── server
│       ├── chatserver.hpp
│       ├── chatservice.hpp
│       ├── db
│       │   └── db.h
│       └── model
│           ├── friendmodel.h
│           ├── group.hpp
│           ├── groupmodel.hpp
│           ├── groupuser.hpp
│           ├── offlinemessagemodel.h
│           ├── user.hpp
│           └── usermodel.h
├── run.sh
├── src
│   ├── client
│   ├── CMakeLists.txt
│   └── server
│       ├── chatserver.cpp
│       ├── chatservice.cpp
│       ├── CMakeLists.txt
│       ├── db
│       │   └── db.cpp
│       ├── main.cpp
│       └── model
│           ├── friendmodel.cpp
│           ├── groupmodel.cpp
│           ├── offlinemessagemodel.cpp
│           └── usermodel.cpp
└── thirdparty
    └── json.hpp

编译

cd build
cmake ..
make

运行服务端

运行客户端

telnet 127.0.0.1 8888

About

基于 muduo 网络库的集群聊天服务器, 通过 nginx 进行负载均衡, redis 实现消息订阅

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published