Skip to content

lucafisc/minitalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minitalk

drawing

lde-ross's 42 minitalk Score

minitalk is a program that allows inter-process communication between a client and a server. The client sends messages to the server one bit at a time. The server should then receive and reconstruct the original message. It utilizes the use of signals to transfer the data.

The program has the bonus functionality of confirming the message received by the server and supporting unicode characters.

External functions: write sigemptyset sigaction kill getpid malloc free pause usleep exit

Visualizer

How to use

Clone the minitalk repository to your local machine:

git clone https://github.com/<username>/minitalk.git

Navigate to the minitalk directory:

cd minitalk

Compile the code to generate the executables (server and client):

make

Start the server by running the following command in your terminal:

./server

The server will display its PID (process ID) in the terminal. Take note of this PID as you will need it later.

Start the client by running the following command in a separate terminal window:

./client <SERVER PID> "Your message here ♥"

The server will display the message sent by the client. The client will receive a confirmation that the message has been successfully sent to the server.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published