Skip to content

This project entails the development of a simple client-server communication program in a UNIX environment.

Notifications You must be signed in to change notification settings

RushMaverick/minitalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Minitalk

Minitalk is a simple communication program consisting of a client and a server, written in C for UNIX environments. The program enables communication between processes using UNIX signals, specifically SIGUSR1 and SIGUSR2.

Features

  • Client-Server Communication: Minitalk facilitates communication between a client and a server process.
  • Quick Response: The server promptly displays received messages, ensuring efficient communication.
  • PID Display: The server prints its Process ID (PID) upon startup.
  • Error Handling: Thorough error handling ensures the program doesn't quit unexpectedly and avoids memory leaks.

Installation

  1. Clone the repository:
git clone https://github.com/RushMaverick/minitalk.git
  1. Navigate to the project directory:
cd minitalk
  1. Compile the source files using the provided Makefile:
make

Usage

Server

  1. Start the server:
./server
  1. Note the displayed PID for future reference.

Client

  1. Execute the client, providing the server's PID and the message to send:
./client [server_PID] [message]

Replace [server_PID] with the PID of the server obtained during server startup, and [message] with the desired message to send.

Example

  1. Start the server:
./server
  1. Note the server's PID displayed in the console.

  2. In a separate terminal, execute the client with the server's PID and a message:

./client [server_PID] "Hello, server!"

Replace [server_PID] with the server's PID obtained in step 2.

  1. The server should promptly display the received message.

About

This project entails the development of a simple client-server communication program in a UNIX environment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published