Skip to content

This is CLI Chat Messenger based on POSIX API from Linux OS. Works like facebook messenger but in CLI instead of GUI.

Notifications You must be signed in to change notification settings

stalha97/CLI-Chat-Messenger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI Chat Messenger

This is CLI Chat Messenger based on POSIX API from Linux OS. Do note that unlike other similar named projects, this project works like a normal messenger e.g just as Facebook messenger would work. Except that it uses Command Line Interface (CLI) instead of a Graphical User Interface(GUI).

Major Programming Concepts Used

  • Sockets
  • Multi-Threading
  • Object Oriented Programming
  • Queue Data Structure

Compilation

If using the g++ compiler you can do:

g++ server.cpp -lpthread -o server
g++ client.cpp -lpthread -o client

Usage

  • Start the server on 1 PC/Terminal.
./server
  • Find IP of the server's PC using ipconfig/ifconfig. Let's call it "serverIP".

  • Use IP of the server to start client in another PC/Terminal.

./client serverIP

Using the above method, you can start as many clients as you want on different PCs OR even on same PC but different Terminals.

How does it work?

alt text


alt text


alt text


About

This is CLI Chat Messenger based on POSIX API from Linux OS. Works like facebook messenger but in CLI instead of GUI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published