Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/medidbella/minitalk
This project aims to code a small data exchange program using UNIX signals
https://github.com/medidbella/minitalk
unix-signal-handling
Last synced: 29 days ago
JSON representation
This project aims to code a small data exchange program using UNIX signals
- Host: GitHub
- URL: https://github.com/medidbella/minitalk
- Owner: medidbella
- Created: 2024-01-14T22:38:02.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-16T13:04:00.000Z (about 1 year ago)
- Last Synced: 2024-11-12T03:37:12.660Z (3 months ago)
- Topics: unix-signal-handling
- 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
This project aims to code a small data exchange program using UNIX signals.
the challenge is thatyou can only use one global variable per program, also you can only use
two signals (SIGUSR1 and SIGUSR2)--------------------------------------------HOW TO USE IT---------------------------------------
-1 after cloning the run the make file by typing "make"
-2 then you will have two programs (server and client) run the server first (its ID will be printed)
-3 in another terminal run the client program like this (./cleint ("the-server-id" "any message you want to send")
lastly, you will see that the same message is printed in the first terminal where the server is running
if the message printed by the server is different try to increase the value given
to the usleep function in the "client.c" file make it for example 500