Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        


42 - MiniTalk

Covers

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.

Subject

## 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).