Giter Site home page Giter Site logo

minitalk's Introduction

Minitalk

This is a small data exchange program using UNIX signals.

./server

When launched, this program with print it's PID to STDOUT and wait for incoming signals. The server will remain running until killed.

./client

The client program will take a PID and a string as arguments and send the string to the PID using UNIX signals. The client will not terminate until is has received notification that the sent message has been recieved by the client.

Both programs are unicode compatible.


Installation

git clone https://github.com/AuroraSloan/minitalk.git

Usage

First, create the executables with make

make - compiles the server and client executables
make clean - removes all .o files
make fclean - removes all .o files and the executables
make re - removes all .o files and all executables before recompiling the programs

server

Run the server program and the PID list will be printed. I recommend to run the client and server in separate terminals, however they can be run in the same terminal.

separate

./server

together

./server&

In this case, the server will be running in the background. If you forget the PID, you can see is by typing the command:

jobs -p

client

Run the client program with the PID and a string.

./client <PID> <string>

To terminate the server, you can either press CTRL+C into the terminal where the server is running if it is not in the background.

Otherwise, you can kill the server with the command kill <PID> either in the terminal that the client is in, or if the server is running in the background.

minitalk's People

Contributors

aurorasloan 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.