This repository contains code developed at 42 Porto for minitalk Project, from 08/12/2022 to 30/12/2022.
Click here for the subject of this project.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]
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
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.