This is a basic chat application I made during my Computer Architecture and Operating Systems course written in C using threads and UNIX domain sockets. This app lets you message different clients on the same system and talk to them individually at a time or everyone at once using username tags.
- Clone the repository on your system using
git clone https://github.com/dhruvs009/SocketChat.git
. - Navigate to the download directory.
- Run
make server
to create a server. - Run
make SocketName="socket_address" Username"username user"
on a different terminal to create a user. Replace "socket_address" with that displayed by the server and "username with a username of your choice (without the quotes). - On the user terminals write
@username message
to send a message to the username as mentioned.
Dhruv Sahnan
Computer Architecture and Operating Systems | Monsoon'19
B.Tech CSAM | Batch of 2022
IIIT Delhi