The aim of this project is to set up a TCP based server for multiple clients that can send and receive messages between each other.
g++ server.cpp -o server -lpthread -lsqlite3
g++ client.cpp -o client -lpthread -lsqlite3
./server
./client
In order to use the server, you must register with a username and a password.
Once registration is complete, your username and your hashed password is saved to the server.
After you register, client side will be closed automatically for you to login to server. Before you log in, close the server and rerun the server.(This will update the users database.)
Log in to the server.
In order to list the connected online clients give this command ;
LIST
In order to send message to another client give this command ;
SEND <CLIENT NUMBER> <YOUR MESSAGE>
Here is the number which you receive after you give LIST command.
In order to see history of messages, give this command ;
HISTORY
In order to exit from the server give this command ;
EXIT
For any questions, mail me ; aturancetinn@gmail.com