scndcorp
Available
Work
École 42 ParisStudent, École 42 project

Minitalk, inter-process communication using UNIX signals

École 42 project, data exchange between a client and a server in C using only UNIX signals (SIGUSR1 / SIGUSR2), with binary encoding of characters.

École 42 Paris

Challenge

Make two processes communicate using only UNIX signals, without any pipe or socket: transmit a character string from a client to a server relying solely on SIGUSR1 and SIGUSR2.

Impact

  • Inter-process communication relying only on UNIX signals
  • Binary encoding of characters into SIGUSR1 / SIGUSR2
  • Message reconstruction on the server side via signal handlers

What was done

A client/server pair where the client encodes each character bit by bit into SIGUSR1/SIGUSR2 and the server reconstructs it via signal handlers, with handling of the PID, the timing and the acknowledgment.

Stack

The technologies used on this mission.

  • C
  • Signaux UNIX (SIGUSR1/SIGUSR2)
  • IPC
  • Encodage binaire

A similar project in mind?

Let's talk through your challenges and see how to turn your vision into maintainable, tested technical reality.