Skip to content

andreyvdl/42-minitalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation



Program name Files to turn in External functions Result
client, server *.c, *.h, Makefile libft functions, write, signal, sigemptyset, sigaddset, sigaction, kill, getpid, malloc, free, pause, sleep, usleep, exit 125/100%

Objective

You must create a communication program in the form of a client and a server.
The server must be started first. After its launch, it has to print its PID.
The client takes two parameters:

  • The server PID.
  • The string to send.

The client must send the string passed as a parameter to the server. Once the string has been received, the server must print it.

Execution

make

on terminal 1:

./server

on terminal 2:

./client server_pid string

OR

make bonus

on terminal 1:

./server

on terminal 2:

./client server_pid string