Using Socket programming and synchronous I/O multiplexing and mysql api for Db access.Tested on Ubuntu 20.04.1
## Just run make
make
./SERVER <config-file>
#Server Configuration
SERVER_IP=127.0.0.2
SERVER_PORT=2500
SERVER_BACKLOG=10
#Database Configuration
DB_NAME=DB_NAME
DB_PASSWORD=DB_PASS
DB_USER=DB_USER
DB_HOST=DB_HOST
Command | Parameter | Description |
---|---|---|
login | login to the server | |
mp | username data | for private message |
who | who is online | |
logout | disconnect from the server | |
help | show command list | |
Ban | username | ban permanently a user |
- The Server manipulate memory efficiently.
- This Server is not a production-grade server.
- They might be some bugs that i didn't pay attention.
- Feel free to collaborate.