The purpose of this project is to code a small data exchange program using UNIX signals.
A message is written on the client that must then send the string passed as a parameter to the server.
Once the string has been received, the server must print it.
The message is encoded in its binary code and then sent between two processes using the SIGUSR1 and SIGUSR2 signals.
signal.h
library is used to send and interpret signals on client and server side.
-
Clone repository
git clone git@github.com:mjorgecruz/42_minitalk.git
-
Go inside project directory and run
make
cd 42_minitalk make
-
Open one terminal and run
./server
. The pid of the process should appear on the terminal output../server
-
Open another terminal and run
./client {server_PID} {MESSAGE}
../client 10254 "This is my minitalk"