Skip to content

LeonardoSabar/Minitalk_42SP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minitalk

Para acessar a versão em português deste README clique aqui.

mandatory

Description

The minitalk project is a C programming assignment where students create a client-server communication system using UNIX signals. The client sends a string message to the server by encoding it into binary and sending it bit by bit using signals. This project helps students understand signal handling and inter-process communication concepts.

Code style

The code style used in this project is the Norminette created by the 42 school and used in all related ANSI C projects in the context of the school.


Installation

This project use the external library Libft and printf developed in the 42 school curriculum, to clone this project and this library use the command:

git clone --recursive git@github.com:LeonardoSabar/minitalk.git

this command will clone the project and the Libft submodule


To compile the mandatory part use:

make

To compile the bonus part use:

make bonus

Usage

After compiling the project, the executables files with the names server and client will be created. First, you should execute the .server file to generate the PID, and then execute the .client file (preferably in a new terminal, parallel to the .server), along with the PID and the message as arguments:

Examples:

./server
./client "PID NUMBER" "MESSAGE TO NE SENT"

If the message to be sent is a sentence, you should use quotes to pass it as a single argument.

Appreciation

To all my colleagues at 42 SP school, who helped me during the development of this project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published