Skip to content

The purpose of this project is to code a small data exchange program using UNIX signals

Notifications You must be signed in to change notification settings

mjorgecruz/42_minitalk

Repository files navigation

42_minitalk

The purpose of this project is to code a small data exchange program using UNIX signals.

A message is written on the client that must then send the string passed as a parameter to the server.
Once the string has been received, the server must print it.

The message is encoded in its binary code and then sent between two processes using the SIGUSR1 and SIGUSR2 signals.

signal.h library is used to send and interpret signals on client and server side.

How to run

  1. Clone repository

    git clone git@github.com:mjorgecruz/42_minitalk.git
  2. Go inside project directory and run make

    cd 42_minitalk
    make
  3. Open one terminal and run ./server. The pid of the process should appear on the terminal output.

    ./server 
  4. Open another terminal and run ./client {server_PID} {MESSAGE}.

    ./client 10254 "This is my minitalk"

About

The purpose of this project is to code a small data exchange program using UNIX signals

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published