Skip to content

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

License

Notifications You must be signed in to change notification settings

lbordonal/02-minitalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains code developed at 42 Porto for minitalk Project, from 08/12/2022 to 30/12/2022.

📓 Subject

Click here for the subject of this project.

💻 Usage

1- Clone this repository:
git clone https://github.com/lbordonal/02-minitalk.git

2- Navigate to minitalk folder:
cd 02-minitalk/minitalk/

3- Run with make or make bonus:
make or make bonus

4- Start the server to get his PID with:
./server or ./server_bonus

5- Start the client and send message with:
./client [PID] [Message] or ./client_bonus [PID] [Message]

🏅 Mandatory Part

client.c

  • check_input - check if the input is valid.
  • send_msg - convert the message char by char to binary and send the signal to the server.

server.c

  • print_msg - convert the binary signal received from client and print the message.

minitalk.h

Libft library



🏆 Bonus Part

client_bonus.c

  • check_input - check if the input is valid.
  • send_msg - convert the message char by char to binary and send the signal to the server_bonus.
  • send_null - convert the '\0' to binary and send the signal to the server_bonus.
  • handler_sig - receive the signal from server_bonus and print the confirmation.

server_bonus.c

  • handler_sig - convert the binary signal received from client_bonus, print the message, and send confirmation to client_bonus.

minitalk.h

Libft library




This work is published under the terms of 42 Unlicense.

About

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

Topics

Resources

License

Stars

Watchers

Forks