Skip to content

Final grade: 125% | 42 school level 3 project. Create a small communication program in the form of a client and a server using UNIX signals.

Notifications You must be signed in to change notification settings

Sur1ive/42tokyo_minitalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minitalk

Final grade: 125%

You must create a communication program in the form of a client and a server. The communication between your client and your server has to be done only using UNIX signals.

  • You can only use these two signals: SIGUSR1 and SIGUSR2.

My program sends messages and check if it is correct with 32byte-package like this. UTF-8 is supported.

/*                    32byte-package                         */
/*  [ PID bytes(4B) | message bytes(24B) | check bytes(4B)]  */
/*     client PID    6 utf8 char 1char/4B     sum of 28B     */

How to use

# console A
$> make
$> ./server

# console B
$> ./client [process ID] [message]

NOTICE

42 Project must be written in accordance with the 42 school norm, otherwise the grade is 0:

  • Declarations must be at the beginning of a function
  • Declaration and an initialisation cannot be on the same line
  • Each function cannot have more than 25 lines of code
  • You can only use allowed functions
  • ...

English: https://github.com/42School/norminette/blob/master/pdf/en.norm.pdf
Japanese: https://github.com/42School/norminette/blob/master/pdf/ja.norm.pdf

About

Final grade: 125% | 42 school level 3 project. Create a small communication program in the form of a client and a server using UNIX signals.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published