The purpose of this project is to code a small data exchange program using UNIX signals. The client receives a string which is sent to the server and displayed on the standar output. The bonus part supports UNICODE characters and displays a message on the client once the server finish printing the string sent.
You can see the subject HERE
1- Clone this repository
git clone https://github.com/MGuardia10/42cursus_minitalk.git
2- Navigate to the new directory and run make
cd 42cursus_minitalk
make
make bonus
3- make clean
to remove the object files and work on a cleaner directory
make clean
4- Run server and copy its PID to the client alongside the string you want to send.
./server
./client <SERVER_PID> <STRING_TO_PASS>
or
./server_bonus
./client_bonus <SERVER_PID> <STRING_TO_PASS>
The minitalk program comes with a Makefile that includes the following rules:
all
: compiles the programsre
: recompiles the programsbonus
: compiles bonus files for the bonus features.clean
: removes all object filesfclean
: removes all object files and client/server programs
- https://www.youtube.com/watch?v=83M5-NPDeWs
- https://man7.org/linux/man-pages/man2/sigaction.2.html
- https://man7.org/linux/man-pages/man2/kill.2.html
- https://www.geeksforgeeks.org/bitwise-operators-in-c-cpp/
- https://emojidb.org/terminal-emojis
At 42School, almost every project must be written in accordance to the Norm, the school's coding standard. As a result, the implementation of certain parts may appear strange and for sure had room for improvement.