ChatApp is a simple chat application that enables communication between a server and clients using Boost.Asio for networking. This guide explains how to build and use the application on Linux.
- Linux (recent distribution, e.g., Ubuntu 20.04 or later)
- Boost C++ Libraries (especially Boost.Asio)
- CMake
- GCC or another compatible C++ compiler
Clone the project from GitHub (replace the URL with the correct one for your project):
git clone https://github.com/username/ChatApp.git
cd ChatApp
Ensure you have Boost and CMake installed. You can install Boost using your distribution’s package manager. For example, on Ubuntu:
sudo apt update
sudo apt install libboost-all-dev cmake g++ make
Build the project using CMake and make:
mkdir build
cd build
cmake ..
make
To start the server, use the command:
./ChatSystem server <port>
Replace <port>
with the port you want the server to listen on (e.g., 25655).
To start the client and connect to the server, use the command:
./ChatSystem client <host> <port>
Replace <host>
with the IP address or domain name of the server and <port>
with the port the server is listening on (e.g., 25655).
./ChatSystem server 25655
./ChatSystem client trwix.go.ro 25655
If you would like to contribute to the project, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-new-feature
). - Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature-new-feature
). - Open a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.