https://github.com/akshayxemo/tcp-client-server-socket
It's a chatting system implemented in C - Programming Language by using TCP-Socket programming. In this project multiple Client can send and receive message between each other until they are connected to the Server. Clients can use multiple commands and command format provided by the server to communicate with the server and other clients.
https://github.com/akshayxemo/tcp-client-server-socket
c c-programming c-programming-language c-project c-projects chat client-server client-server-architecture cpp linux tcp tcp-client tcp-server tcp-socket
Last synced: about 1 month ago
JSON representation
It's a chatting system implemented in C - Programming Language by using TCP-Socket programming. In this project multiple Client can send and receive message between each other until they are connected to the Server. Clients can use multiple commands and command format provided by the server to communicate with the server and other clients.
- Host: GitHub
- URL: https://github.com/akshayxemo/tcp-client-server-socket
- Owner: akshayxemo
- Created: 2023-05-01T17:27:01.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-04T18:56:30.000Z (about 2 years ago)
- Last Synced: 2025-03-14T01:16:15.209Z (3 months ago)
- Topics: c, c-programming, c-programming-language, c-project, c-projects, chat, client-server, client-server-architecture, cpp, linux, tcp, tcp-client, tcp-server, tcp-socket
- Language: C
- Homepage:
- Size: 16.6 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TCP-Client-Server-Socket
It's a chatting system implemented in C - Programming Language by using TCP-Socket programming. In this project multiple Client can send and receive message between each other until they are connected to the Server.
Clients can use multiple commands and command format provided by the server to communicate with the server and other actively connected clients via server.## Prerequisites
1. Linux OS (if you are windows user use WSL or any Virtual Machine with Linux installed)
2. GCC compiler
If you consider using WSL here is how you can [install WSL](https://learn.microsoft.com/en-us/windows/wsl/install) and Ubuntu or any other distributor in your windows system
## Installation
Start by updating the package list```bash
sudo apt update
```
Install GCC compiler```bash
sudo apt-get install gcc -y
```
Check GCC version```bash
gcc --version
```## Compile & Run the code
First compile Server.c and Client.c as server and client```bash
gcc Server.c -o server
```
```bash
gcc Client.c -o client
```
Then run server
```bash
./server
```
Then run client in differnt terminal at same location (you can run same client to multiple terminal to connect more clients with the server)
```bash
./client
```
## Screenshots
>RUNNING SERVER AND CLIENT
>USE OF SOME BASIC COMMAND AND EXIT THE CLIENT

>RUNNING CLIENT ON SAME TERMINAL AND ANOTHER CLIENT ON DIFFERNT TERMINAL

>SENDING MESSAGE FROM CLIENT 3 TO CLIENT 2


>SOME WRONG INPUTS AND RESPONSE FROM SERVER


>LIST COMMAND TO CHECK STATUS OF CLIENTS

>CLOSING CLIENT AND THEIR STATUS

