Skip to content

RhesusP/minitalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minitalk

Where is the description?

forthebadge

Sixth project for 42 school. The aim is to create a client and a server that can communicate only using UNIX signals.

example

Subject

The communication between client and server has to be done only using SIGUSR1 and SIGUSR2 signals.

Server must:

  • be started first
  • print its PID
  • print the string after fully receiving
  • be able to receive strings from several clients in a row without needing to restart.

Usage

Server

./server

Client

./client [server_pid] [message]

How does it work ?

Client

client operation

Server

server operation

Useful links

minitalk-Tester by @ThibaudM13
Cours "Gestion des Signaux" de Mr. Mandel à Polytech Paris-Sud
GeeksforGeeks course
code(quoi) article "Sending and intercepting a signal in C"