A small data exchange program using UNIX signals 📡
The purpose is to create a communication program in the form of a client and server using only UNIX signals SIGUSR1 and SIGUSR2.
-
Server Program:
- Displays its PID on launch
- Receives and prints strings sent by clients
- Must be able to receive strings from several clients in a row
- Must display the string quickly
-
Client Program:
- Takes two parameters:
- Server PID
- String to send
- Communicates with server using UNIX signals
- Must send the string to the server
- The server must display the string fairly quickly
- Takes two parameters:
- Server acknowledgment: The server acknowledges every message received
- Unicode characters support: The program supports Unicode characters
# Compile:
make
# Start the server:
./server
# Send messages using the client:
./client [SERVER_PID] "Your message here"
At 42 School, most projects must comply with the Norm.