Minitalk is a simple communication program consisting of a client and a server, written in C for UNIX environments. The program enables communication between processes using UNIX signals, specifically SIGUSR1 and SIGUSR2.
- Client-Server Communication: Minitalk facilitates communication between a client and a server process.
- Quick Response: The server promptly displays received messages, ensuring efficient communication.
- PID Display: The server prints its Process ID (PID) upon startup.
- Error Handling: Thorough error handling ensures the program doesn't quit unexpectedly and avoids memory leaks.
- Clone the repository:
git clone https://github.com/RushMaverick/minitalk.git
- Navigate to the project directory:
cd minitalk
- Compile the source files using the provided Makefile:
make
- Start the server:
./server
- Note the displayed PID for future reference.
- Execute the client, providing the server's PID and the message to send:
./client [server_PID] [message]
Replace [server_PID]
with the PID of the server obtained during server startup, and [message]
with the desired message to send.
- Start the server:
./server
-
Note the server's PID displayed in the console.
-
In a separate terminal, execute the client with the server's PID and a message:
./client [server_PID] "Hello, server!"
Replace [server_PID]
with the server's PID obtained in step 2.
- The server should promptly display the received message.