Obsolete
/
libipc-old
Archived
3
0
Fork 0
This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues/pull-requests.
libipc-old/pingpong
lapupe f3f7927d25 fix some issues thanks to valgrind but it isn't perfect yet, need more work on it 2016-09-23 20:27:26 +02:00
..
Makefile Makefile pour le pongd 2016-09-19 17:10:11 +02:00
README.markdown pingpong service with test application script : working 2016-05-30 16:30:05 +02:00
pingpong.c fix some issues thanks to valgrind but it isn't perfect yet, need more work on it 2016-09-23 20:27:26 +02:00
pingpong.sh pingpong.sh 2016-09-18 00:15:14 +02:00

README.markdown

Service ping-pong

This service is a brain-dead application. It is only to a pedagogic end.

The purpose is only to communicate with an application once, the application sends a message and the service answer with the same message.

How it works

  • S: service
  • A: application
  1. S creates the named pipe /tmp/pingpong, then listens
  2. S opens the named pipes in & out
  3. A talks with the test program pingpong.sh
  4. S closes the test program named pipes
  5. S removes the named pipe /tmp/pingpong after 10 served applications

pingpong.sh

The script pingpong.sh lets you test the service.

Usage :

pingpong.sh [NB]
# NB is the number of exchanged messages

or

pingpong.sh clean
# it is to clean the /tmp/ipc/ directory