Giter Site home page Giter Site logo

42_minitalk's Introduction

minitalk

Bit by bit, signals make you want to quit

GitHub code size in bytes Code language count GitHub top language GitHub last commit


๐Ÿ—ฃ About

The purpose of this project is to code a small data exchange program using UNIX signals. It is an introductory project for the bigger UNIX projects that will appear later on in the cursus.

Play Demo

๐Ÿ›  Usage

Requirements

The game is written in C language and thus needs the gcc compiler and some standard C libraries to run.

Instructions

Execute the binaries from different shells. First, start the server.

$> make
$> ./server
Server PID: 4242

The server will print its process id to the output. Use it as the first argument to the client and as teh second argument pass the message you want to send.

$> ./client 4242 "some_message"

You will see that the server will receive the message and print it to its output. Since the subject states to print the message after the server received it but with large messages the communication takes a lot of time, the server will store the incoming characters in a buffer and only print it once it's full or it receives a NUL-character as the indication for the end of the message.

42_minitalk's People

Contributors

aaron-22766 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.