Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minitalk

C server + client Flags

This project has been created as part of the 42 curriculum by lmouta-g (dop42).


Description

minitalk is a UNIX inter-process communication project using signals. The goal is to create a server and a client that communicate using only SIGUSR1 and SIGUSR2.

The client sends a string to the server by encoding each character in binary. The server reconstructs the message bit by bit and displays it.

This project introduces signal handling, process communication, and bitwise operations.


Instructions

Compilation

make

This generates two executables:

  • server
  • client

Useful rules:

make clean
make fclean
make re

Usage

  1. Start the server:
./server

It will display its PID.

  1. Run the client with the server PID and a message:
./client <server_pid> "Your message"

The message will be displayed on the server side.


Structure

includes/minitalk.h   prototypes and structs
src/server.c          receives the bits and rebuilds the message
src/client.c          encodes the message and sends it bit by bit
utils/send.c          signal sending helper
lib/                  the libft (helpers)

Resources

About

UNIX signal-based messaging system built during 42 curriculum. Implements client-server communication using only SIGUSR1 and SIGUSR2.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages