This project consists of a server process and a client process that communicate using sockets. The client sends integer values to the server, which sums them. When the client sends 0, the server responds with the total sum and terminates the connection.
- The client sends integer values to the server via sockets.
- The server accumulates the received integers.
- When the client sends
0, the server returns the total sum. - Uses socket programming for inter-process communication.
- A Linux-based system
- GCC compiler for C programs
- Basic understanding of socket programming
-
Compile the server and client using the Makefile:
make
-
Run the server:
./bin/server
-
Run the client:
./bin/client
- The client sends integer values to the server.
- The server accumulates the values.
- When the client sends
0, the server sends back the sum and closes the connection.
Developed by Marwen BENISMAIL