Skip to content

Minitalk is a small but powerful project that allows communication between two processes using only signals. Its simplicity is deceptive, as it requires precise handling of signals and their associated data. This project is a great exercise in low-level programming and demonstrates the power of UNIX inter-process communication.

Notifications You must be signed in to change notification settings

abdelhamidbouazi/Minitalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minitalk

Minitalk is a simple client-server program in C, using UNIX signals for inter-process communication. The server receives a message from the client and displays it. Both the client and server can run on the same machine or different machines on a network. This project is a part of the curriculum at 42.

Installation

  1. Clone the repository: git clone https://github.com/<username>/minitalk.git
  2. Change directory: cd minitalk
  3. Compile the executable: make

Usage

Server

./server

Client

./client [server_pid] [message]

Replace [server_pid] with the process ID of the server, which is displayed when the server is started. Replace [message] with the message you want to send.

Example

  1. Start the server: ./server
  2. In another terminal, send a message: ./client [server_pid] Hello, Minitalk!

About

Minitalk is a small but powerful project that allows communication between two processes using only signals. Its simplicity is deceptive, as it requires precise handling of signals and their associated data. This project is a great exercise in low-level programming and demonstrates the power of UNIX inter-process communication.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published