https://github.com/kuninoto/42_minitalk
Small data exchange between client and server programs using UNIX signals - introduction to Inter Process Communication (IPC)
https://github.com/kuninoto/42_minitalk
1337school 21school 42 42-minitalk 42-school 42born2code 42cursus 42minitalk 42porto 42portugal 42projects 42school ecole42 minitalk minitalk-42 minitalk42 school42
Last synced: about 2 months ago
JSON representation
Small data exchange between client and server programs using UNIX signals - introduction to Inter Process Communication (IPC)
- Host: GitHub
- URL: https://github.com/kuninoto/42_minitalk
- Owner: Kuninoto
- Created: 2022-11-27T15:46:08.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-03-27T23:42:32.000Z (3 months ago)
- Last Synced: 2025-04-05T12:42:01.349Z (2 months ago)
- Topics: 1337school, 21school, 42, 42-minitalk, 42-school, 42born2code, 42cursus, 42minitalk, 42porto, 42portugal, 42projects, 42school, ecole42, minitalk, minitalk-42, minitalk42, school42
- Language: C
- Homepage:
- Size: 1.86 MB
- Stars: 20
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# minitalk (42Porto - 42Cursus)
## Grade: 125/100
### Showcase
### Description
2 programs, `server` and `client` that use the UNIX signals SIGUSR1 and SIGUSR2 to exchange binary-encoded messsages - Introduction to Inter Process Communication (IPC).### Installing and running the project
1- Clone this repository
git clone https://github.com/Kuninoto/42_minitalk
2- Run `make`
make
3- `make clean` so that you don't keep those object files that you won't need anymoremake clean
4- Run `server`, copy its PID and run `client` with it alongside the message you wish to send../server
./client#### Makefile available targets
`make` or `make all` - Makes `server` and `client`
`make clean` - Deletes all the resulting object files
`make fclean` - Deletes the executables and all the resulting object files
`make re` - `fclean` + `all`
`make bonus` - same as `all`, added for assignment purposes### Useful links:
[Sending and Handling Signals in C (kill, signal, sigaction)](https://www.youtube.com/watch?v=83M5-NPDeWs)
[Bitwise operators in C](https://www.geeksforgeeks.org/bitwise-operators-in-c-cpp/)## Disclaimer
> At [42School](https://en.wikipedia.org/wiki/42_(school)), almost every project must be written in accordance to the "Norm", the schools' coding standard. As a result, the implementation of certain parts may appear strange and for sure had room for improvement.---
Made by Nuno Carvalho (Kuninoto) | [email protected]