A simple inter-process communication project using UNIX signals in C.
Minitalk is a project from the 42 curriculum that teaches how to communicate between two processes using UNIX signals. It consists of two programs: server and client.
The client sends a message (string) to the server by encoding characters into bits and sending them using SIGUSR1 and SIGUSR2. The server decodes these bits and prints the message.
Through this project, I learned:
- The use of
kill()to send signals between processes - How to encode and decode data bit by bit using
SIGUSR1andSIGUSR2 - The use of
signal()andpause()for asynchronous signal handling - How to manage multi-part message transmission and detect end-of-message
- Basic inter-process communication (IPC) concepts in a low-level environment