Skip to content

hceviz/minitalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛰️Minitalk

Minitalk is a 42 project that implements a simple client-server communication system using UNIX signals. The client sends a string message to the server, one bit at a time, using SIGUSR1 and SIGUSR2 to represent binary 1s and 0s. The server decodes the bits and displays the message.

🛠️ Project Overview

This project demonstrates:

•	Inter-process communication (IPC)
•	Bit manipulation
•	Signal handling (SIGUSR1, SIGUSR2)
•	Process IDs (PID)
•	Robust and efficient C programming

🔧 Installation & Compilation

Clone the repository and compile:

make

This will generate two executables: server and client.

🧪 Usage

1.Start the server:

./server

This will output the server's PID:

PID=12345

2.Send a message from client:

./client 12345 "Hello, Minitalk!"

The server should receive and display:

Hello, Minitalk!

⚠️ Replace 12345 with the actual PID printed by the server.

About

Signal based IPC messenger 🛰️

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors