Skip to content

Small client / server communication program only using UNIX signals. 42 Madrid cursus project.

Notifications You must be signed in to change notification settings

karisti/42_minitalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42_minitalk

Demo GIF

Description

This project consists of creating a communication program in the form of a client and a server. The communication between client and server has to be done only using UNIX signals (SIGUSR1 and SIGUSR2). The server can receive strings from several clients in a row without needing to restart.

Prerequisites

  • Nothing needed

Usage

  1. make
  2. Run ./server on a shell and leave it running
  3. Run ./client <SERVER_PID> <YOUR_MESSAGE> on another shell

Lessons

  • UNIX Signals
  • Processes
  • Bitwise Operators
  • Pause, sleep, exit

Resources

About

Small client / server communication program only using UNIX signals. 42 Madrid cursus project.

Topics

Resources

Stars

Watchers

Forks