CLI Chat is a multithreaded chat server that allows multiple clients to connect simultaneously and exchange messages in real-time.
- A group chat simulation of clients connected on the same network.
- Supports multiple clients.
- Private messaging
- View - View all connected users.
- usage:
/view
- usage:
- Whisper - Private message other connected clients.
- Example usage:
/whisper 29 Hello James
29 is the uid of the user you want to message privately.
- Example usage:
-
- Fork the repo
- Clone the repo to your local machine
git clone https://github.com/codedmachine111/cli-chat.git
- Change current directory
cd cli-chat
-
Compile the source code:
make all
- How to run
- Run the server code on a machine.
./server
- Run the client code on any other machine or the same machine (different terminal tab/window).
./client
If you are running the server and client of different machines, modify the
SERVER_IP_ADDRESS
macro in both client and server files to the public IP-address of the machine running the server code. (ifconfig it)
Contributions are welcome! If you have any suggestions, improvements, or bug fixes, please submit a pull request or open an issue on the GitHub repository.