https://github.com/qibinc/wechatlite
https://github.com/qibinc/wechatlite
cxx11 json python-3-6 socket
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/qibinc/wechatlite
- Owner: qibinc
- Created: 2017-12-19T12:02:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-26T05:58:28.000Z (over 8 years ago)
- Last Synced: 2025-08-13T19:04:51.124Z (11 months ago)
- Topics: cxx11, json, python-3-6, socket
- Language: C++
- Size: 118 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
WeChatLite
==========
## Intro
Server initially borrowed from https://github.com/yorickdewid/Chat-Server
Simple chatroom in C. This project demonstrates the basic use of sockets.
You should specify the port, for example 5000.
The project is intended to run on Linux and Unix based systems.
## Build
### Server
First, fetch dependencies.
```bash
bash fetch.sh
```
Run GNU make in the repository
```bash
cd server
make
```
Then start
`./a.out 5000`
### Client
`python client.py --port 5000`
## Features (out of maintenance)
* Accept multiple client (max 100)
* Name and rename users
* Send private messages
## Chat commands (out of maintenance)
| Command | Parameter | |
| ------------- | --------------------- | ----------------------------------- |
| \QUIT | | Leave the chatroom |
| \PING | | Test connection, responds with PONG |
| \NAME | [nickname] | Change nickname |
| \PRIVATE | [reference] [message] | Send private message |
| \ACTIVE | | Show active clients |
| \HELP | | Show this help |