Minitalk is a 42 school project that consists in creating a small client-server data exchange program using UNIX signals.
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
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.
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! β
bsoubaig β [email protected]