This is a simple server/client application written in C++. A simple TCP server is opened and then clients can be connected to chat.
- Start server in a terminal
./server - Start client(s) in (an)other terminal(s)
./client - As a client, you can type some commands to show help list, change name, to list connected users and to exit. It shows appropriate error message if the command is wrong.
- As a server, you see all the commands and messages from all the users and you get appropriate messages for connecting/disconnecting users
This app is simple and was done in a very short amount of time. It was not fully tested and hence it's prone to vulnerabilities and bugs. Feel free to modify the code to add functionality or fix bugs.
If you change the code in any way, you can simple rebuild using make. Make (no pun intended) sure CMAKE is installed on your machine.