Skip to content

"Minitalk" is a project in the 42 school curriculum that involves creating a simple client-server application that can send and receive messages between two processes using signals.

Notifications You must be signed in to change notification settings

hovhannisyangevorg/MicroLink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MicroLink

MicroLink is a project developed as part of the curriculum at 42, a coding school. It is a client-server application that allows two processes to communicate using only signals.

Installation

  1. Clone the repository:
  2. git clone https://github.com/hovhannisyangevorg/MicroLink.git
  3. Navigate to the project directory:
  4. cd MicroLink
  5. Compile the server:
  6. make server
  7. Compile the client:
  8. make client

Usage

  1. Start the server by running the following command:
  2. ./server
  3. In a separate terminal, run the client with the server's process ID (PID) as the first argument and the message to be sent as the second argument:
  4. ./client [server_PID] [message]

    For example:

    ./client 12345 Hello
  5. The client process will send the message to the server, which will receive and display it.
  6. You can send multiple messages by running the client again with different messages.

Project Structure

The MicroLink project consists of the following files:

  • src/server.c: Contains the implementation of the server.
  • src/client.c: Contains the implementation of the client.
  • src/utils.c: Contains the helper functions for the program.
  • Makefile: Contains the build instructions for compiling the server and client.

Contributing

Contributions to the Minitalk project are welcome. If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

About

"Minitalk" is a project in the 42 school curriculum that involves creating a simple client-server application that can send and receive messages between two processes using signals.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published