Program name | Files to turn in | External functions | Result |
---|---|---|---|
client, server | *.c, *.h, Makefile | libft functions, write, signal, sigemptyset, sigaddset, sigaction, kill, getpid, malloc, free, pause, sleep, usleep, exit | 125/100% |
You must create a communication program in the form of a client and a server.
The server must be started first. After its launch, it has to print its PID.
The client takes two parameters:
- The server PID.
- The string to send.
The client must send the string passed as a parameter to the server. Once the string has been received, the server must print it.
make
on terminal 1:
./server
on terminal 2:
./client server_pid string
OR
make bonus
on terminal 1:
./server
on terminal 2:
./client server_pid string