Skip to content

lazy8055/Chitchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChitChat

Chitchat is a simple chatroom terminal tool created using sockets and select() in c. Multiple user can connect to the server and communicate with each other. I created this project as a mini project for my college so don't expect advanceded features like sending photo and voice messages. It currently only works in linux. It definitely works on ubuntu but for other linux distributions check out the macros in utility/helper.h wheather the terminal emulator and the flag used to execute the file in the respective terminal emulators are correct.
Look at the Demo gif is in the Demo folder to know how to use ChitChat.

image


Installation

First clone this repo in your local machine by executing the below command in your terminal

git clone https://github.com/lazy8055/Chitchat.git

Then to compile all the required c files execute the make command inside the Chitchat folder

make




Usage

For Server

Open terminal in the Chitchat folder and execute chitchat file with flag -s or --server

./chitchat -s

Or

./chitchat --server

For Client

Open terminal in the Chitchat folder and execute chitchat file with flag -s or --server

./chitchat -c

Or

./chitchat --client

After the give a name for your typespace which is going to the name of the fifo which will act as a communication medium for two terminals. If you don't know about fifo file don't worry about it. Just give it a random name wihout any symbols. After that a new terminal will be appeared in which you are going to write your messages and the terminal in which the chitchat program is running is just for display
image

Type help in the type space to know what you can do image



For client, you need to give the ipv4 address of the server and the user name that you want. Don't forget that symbols are not allowed in username.
image


External links



About

Simple chatroom using sockets and select() in c

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors