Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mathyscogne/42_mini_talk
A client-server communication program using UNIX signals (SIGUSR1 & SIGUSR2). The client converts strings to binary and transmits them bit by bit to the server, which reconstructs and displays the message.
https://github.com/mathyscogne/42_mini_talk
42 c minitalk unix
Last synced: about 2 months ago
JSON representation
A client-server communication program using UNIX signals (SIGUSR1 & SIGUSR2). The client converts strings to binary and transmits them bit by bit to the server, which reconstructs and displays the message.
- Host: GitHub
- URL: https://github.com/mathyscogne/42_mini_talk
- Owner: MathysCogne
- Created: 2024-12-06T16:44:23.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-08T00:15:38.000Z (about 2 months ago)
- Last Synced: 2024-12-08T01:18:59.700Z (about 2 months ago)
- Topics: 42, c, minitalk, unix
- Language: C
- Homepage:
- Size: 1.59 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
42 - MiniTalk
A small data exchange program using UNIX signals 📡
The purpose is to create a communication program in the form of a client and server using only UNIX signals SIGUSR1 and SIGUSR2.
## Features
### Mandatory Requirements:
- **Server Program:**
- Displays its PID on launch
- Receives and prints strings sent by clients
- Must be able to receive strings from several clients in a row
- Must display the string quickly- **Client Program:**
- Takes two parameters:
- Server PID
- String to send
- Communicates with server using UNIX signals
- Must send the string to the server
- The server must display the string fairly quickly### Bonus Features:
- **Server acknowledgment:** The server acknowledges every message received
- **Unicode characters support:** The program supports Unicode characters## Compilation and Usage
```bash
# Compile:
make# Start the server:
./server# Send messages using the client:
./client [SERVER_PID] "Your message here"```
## Disclaimer
> At 42 School, most projects must comply with the [Norm](https://github.com/42School/norminette/blob/master/pdf/en.norm.pdf).