Skip to content

A multithreaded terminal-based group chat application.

Notifications You must be signed in to change notification settings

codedmachine111/cli-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI Chat

CLI Chat is a multithreaded chat server that allows multiple clients to connect simultaneously and exchange messages in real-time.

cargo-banner

Features

  • A group chat simulation of clients connected on the same network.
  • Supports multiple clients.
  • Private messaging

Available commands

  1. View - View all connected users.
    • usage: /view
  2. Whisper - Private message other connected clients.
    • Example usage: /whisper 29 Hello James 29 is the uid of the user you want to message privately.

Installation steps

    • 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
  1. Compile the source code:

make all
  1. 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

Note

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)

Contribution

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.

About

A multithreaded terminal-based group chat application.

Resources

Stars

Watchers

Forks

Packages

No packages published