https://github.com/hrishibawane/multi-client-chatroom-in-c
A Linux-based simple chatroom using socket communication and threads for multiple clients
https://github.com/hrishibawane/multi-client-chatroom-in-c
multithreading networking socket-programming
Last synced: 12 months ago
JSON representation
A Linux-based simple chatroom using socket communication and threads for multiple clients
- Host: GitHub
- URL: https://github.com/hrishibawane/multi-client-chatroom-in-c
- Owner: hrishibawane
- Created: 2020-07-28T19:14:38.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-28T19:21:42.000Z (almost 6 years ago)
- Last Synced: 2025-03-16T00:26:48.178Z (over 1 year ago)
- Topics: multithreading, networking, socket-programming
- Language: C
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Multi-client chatroom using sockets and threads in C
Linux-based simple multi-client chatroom using socket communication and threads for handling multiple client connections.
### Execution
1. Clone repository
2. Compile options:
1. ```make all``` => to compile both server and client
2. ```make server``` => to compile server
3. ```make client``` => to compile client
4. ```make clean``` => to clear all executables
3. Execute options:
- run ```./server``` to run server in one terminal
- run ```./client``` in another terminal window/tab
4. Type "exit" or press ctrl-c to quit client.
Note: Change the IP address on line 16 of client.c source file to your local network IP address if you wish to run client on another linux machine connected to local network.