Skip to content

Mattdgn/42_Mini_Talk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42 - MiniTalk

Covers

A small data exchange program using UNIX signals 📡

The purpose is to create a communication program in the form of a client and server using only UNIX signals SIGUSR1 and SIGUSR2.


Subject

Features


Mandatory Requirements:

  • Server Program:

    • Displays its PID on launch
    • Receives and prints strings sent by clients
    • Must be able to receive strings from several clients in a row
    • Must display the string quickly
  • Client Program:

    • Takes two parameters:
      • Server PID
      • String to send
    • Communicates with server using UNIX signals
    • Must send the string to the server
    • The server must display the string fairly quickly

Bonus Features:

  • Server acknowledgment: The server acknowledges every message received
  • Unicode characters support: The program supports Unicode characters

Compilation and Usage


# Compile:
make

# Start the server:
./server

# Send messages using the client:
./client [SERVER_PID] "Your message here"

Disclaimer

At 42 School, most projects must comply with the Norm.

About

A client-server communication program using UNIX signals (SIGUSR1 & SIGUSR2). The client converts strings to binary and transmits them bit by bit to the server, which reconstructs and displays the message.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors