https://github.com/andreyvdl/42-minitalk
My minitalk project
https://github.com/andreyvdl/42-minitalk
42 42saopaulo c minitalk sigaction signal
Last synced: about 2 months ago
JSON representation
My minitalk project
- Host: GitHub
- URL: https://github.com/andreyvdl/42-minitalk
- Owner: andreyvdl
- Created: 2023-01-16T15:29:54.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-29T00:45:18.000Z (almost 2 years ago)
- Last Synced: 2025-02-13T16:47:54.540Z (4 months ago)
- Topics: 42, 42saopaulo, c, minitalk, sigaction, signal
- Language: C
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
___
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
```sh
make
```on terminal 1:
```sh
./server
```on terminal 2:
```sh
./client server_pid string
```OR
```sh
make bonus
```on terminal 1:
```sh
./server
```on terminal 2:
```sh
./client server_pid string
```