Skip to content

A high-performance, real-time chat system built with Boost.Asio for seamless server-client communication. Ideal for creating efficient chat applications with support for multiple clients and robust messaging capabilities.

License

Notifications You must be signed in to change notification settings

adriantandara/livechat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatApp

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.

Requirements

  • Linux (recent distribution, e.g., Ubuntu 20.04 or later)
  • Boost C++ Libraries (especially Boost.Asio)
  • CMake
  • GCC or another compatible C++ compiler

Installation

1. Clone the Repository

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

2. Install Dependencies

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

3. Build the Project

Build the project using CMake and make:

mkdir build
cd build
cmake ..
make

Usage

Starting the Server

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).

Starting the Client

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).

Examples

Starting a Server on Port 25655

./ChatSystem server 25655

Starting a Client Connecting to trwix.go.ro on Port 25655

./ChatSystem client trwix.go.ro 25655

Contributing

If you would like to contribute to the project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-new-feature).
  3. Commit your changes (git commit -am 'Add new feature').
  4. Push to the branch (git push origin feature-new-feature).
  5. Open a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A high-performance, real-time chat system built with Boost.Asio for seamless server-client communication. Ideal for creating efficient chat applications with support for multiple clients and robust messaging capabilities.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published