Skip to content

πŸ“£ small client-server data exchange program using UNIX signals.

Notifications You must be signed in to change notification settings

okbrandon/minitalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

29 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“£ minitalk

Minitalk is a 42 school project that consists in creating a small client-server data exchange program using UNIX signals.

Top used language Norminette run GitHub last commit

πŸ“š Table of Contents

πŸ“¦ Installation

Clone the repository from GitHub:

git clone https://github.com/okbrandon/minitalk.git

Compile the client executable:

make client

Compile the server executable:

make server

Compile both executables:

make

πŸ“ Usage

Run the server first:

./server

You have to run the server before the client to get the PID.

Then run the client:

./client [PID] [message]

The PID is the one displayed by the server. The message is the message you want to send to the server.

πŸ“ Example

Terminal 1:

$> ./server
    __  ________   _______________    __    __ __
   /  |/  /  _/ | / /  _/_  __/   |  / /   / //_/
  / /|_/ // //  |/ // /  / / / /| | / /   / ,<
 / /  / // // /|  // /  / / / ___ |/ /___/ /| |
/_/  /_/___/_/ |_/___/ /_/ /_/  |_/_____/_/ |_|
               »» PID: 8285 ««

Terminal 2:

$> ./client 8285 "Hello World!"

Terminal 1:

$> ./server
    __  ________   _______________    __    __ __
   /  |/  /  _/ | / /  _/_  __/   |  / /   / //_/
  / /|_/ // //  |/ // /  / / / /| | / /   / ,<
 / /  / // // /|  // /  / / / ___ |/ /___/ /| |
/_/  /_/___/_/ |_/___/ /_/ /_/  |_/_____/_/ |_|
               »» PID: 8285 ««

Hello World!

Terminal 2:

$> ./client 8285 "Hello World!"
8285: Successfully got your message! βœ…

⬆ Back to Top

🌏 Meta

bsoubaig – [email protected]

About

πŸ“£ small client-server data exchange program using UNIX signals.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published