Giter Club home page Giter Club logo

42-minitalk's Introduction

MiniTalk

Description

MiniTalk is a project that allows two processes to communicate with each other using signals. The project is divided into two programs: a server and a client. The server and client can communicate with each other using the process ID (PID) of the server and SIGUSR1 and SIGUSR2 signals.

Installation

  1. Clone the repository:
git clone https://github.com/abouabra/42-MiniTalk.git
  1. Change the current working directory:
cd 42-MiniTalk
  1. Compile the server and client programs:
make

you will find two executables server and client in the current working directory.

Usage

  1. Run the server program:
./server

The server will display its process ID (PID) and wait for the client to connect. copy the server's PID to use it in the next step.

  1. Run the client program with the server's PID and a message as third argument:
./client <server_pid> "Hello, World!"

The client will send the message to the server, and the server will display the message.

Bonus

Description

The bonus part of the project is to implement a server and client programs that support Unicode characters. The server and client must acknowledge the receipt of each message.

Installation

  1. Compile the bonus server and client programs:
make bonus

you will find two executables server_bonus and client_bonus in the current working directory.

Usage

  1. Run the bonus server program:
./server_bonus

The server will display its process ID (PID) and wait for the client to connect. copy the server's PID to use it in the next step.

  1. Run the bonus client program with the server's PID and a message as third argument:
./client_bonus <server_bonus_pid> ๐Ÿ˜Š

The client will send the message to the server, and the server will display the message.

Final Note

If you have any suggestions or improvements, feel free to open an issue or submit a pull request.

42-minitalk's People

Contributors

abouabra avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.