Skip to content

mifavoyke/Minitalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Screenshot 2024-07-05 at 14 42 24

Minitalk

Minitalk is a simple communication program that includes a client and a server. The server prints messages received from the client. The communication is done using UNIX signals, specifically SIGUSR1 and SIGUSR2.

Features

  • The server prints its PID when launched.
  • The client sends a string to the server using the server's PID.
  • The server displays the received string quickly.
  • The server can handle multiple clients in succession without restarting.
  • Communication between client and server is achieved using only SIGUSR1 and SIGUSR2 signals.

Getting Started

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/minitalk.git
  2. Navigate to the project directory:
    cd minitalk
  3. Compile the server and client programs:
    make

Usage

  1. Start the server:

    ./server
    • The server will print its PID, which will be used by the client.
  2. Start the client with the server's PID and the string to send:

    ./client <server_pid> "<message>"

Example:

./client 12345 "Hello, World!"

Signals Used

  • SIGUSR1: Represents a binary 0.
  • SIGUSR2: Represents a binary 1.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published