A simple chat server implemented in C that runs on the terminal.
This server code allows multiple clients to connect and communicate with each other in a chat room environment. It uses TCP/IP sockets for communication.
To set up and run the chat server on your local machine, follow these steps:
- Ensure you have a C compiler installed on your system.
- Clone the repository:
git clone https://github.com/your-username/chat-server.git
-
Navigate to the project directory:
cd server_eval
-
Compile the server code:
gcc server_eval.c -o server
-
Run the compiled server binary:
./server
-
Navigate to the project directory:
cd client_eval
-
Compile the client code:
gcc client_eval.c -o client
-
Run the compiled server binary:
./client
- Listens for incoming connections from multiple clients.
- Authenticates clients using a password.
- Allows clients to send messages to each other in real-time.
- Handles client disconnections gracefully.