EmbLogic's Blog

Multiple Client – server Program using PIPE and Signal.

PIPE to mean connecting a data flow from one process to another.PIPE is passed (a pointer to) an array of two integer file descriptors.It fills the array with two new file descriptors and returns a zero. On failure, it returns -1.The two file descriptors returned are connected in a special way. Any data written to file_descriptor[1] can be read back from file_descriptor[0]. The data is processed in a first in, first out basis, usually abbreviated to FIFO.

Fd[0] = read

fd[1] = write

CODE:

RCS file: ./header.h,v
Working file: ./header.h
head: 1.3
branch:
locks: strict
root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
This is the base header file for the project 3_client server ipc technique using pipe and signals
—————————-
revision 1.3 locked by: root;
date: 2015/08/04 06:05:54; author: root; state: Exp; lines: +1 -0
Included color.h
—————————-
revision 1.2
date: 2015/08/03 18:37:10; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.1
date: 2015/08/03 17:53:18; author: root; state: Exp;
Initial revision
=============================================================================RCS file: ./req_add.c,v
Working file: ./req_add.c
head: 1.10
branch:
locks: strict
root: 1.10
access list:
symbolic names:
keyword substitution: kv
total revisions: 10; selected revisions: 10
description:
This is Requesting client named adder
—————————-
revision 1.10 locked by: root;
date: 2015/08/31 18:06:46; author: root; state: Exp; lines: +7 -0
Included comment
—————————-
revision 1.9
date: 2015/08/04 07:09:47; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.8
date: 2015/08/04 07:07:31; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.7
date: 2015/08/04 06:59:09; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.6
date: 2015/08/04 06:56:03; author: root; state: Exp; lines: +4 -4
*** empty log message ***
—————————-
revision 1.5
date: 2015/08/04 06:06:04; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2015/08/03 18:38:24; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.3
date: 2015/08/03 18:14:47; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/08/03 18:12:15; author: root; state: Exp; lines: +4 -4
*** empty log message ***
—————————-
revision 1.1
date: 2015/08/03 17:53:18; author: root; state: Exp;
Initial revision
=============================================================================RCS file: ./req_sub.c,v
Working file: ./req_sub.c
head: 1.8
branch:
locks: strict
root: 1.8
access list:
symbolic names:
keyword substitution: kv
total revisions: 8; selected revisions: 8
description:
This is the subtractor req_client
—————————-
revision 1.8 locked by: root;
date: 2015/08/04 07:09:48; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.7
date: 2015/08/04 07:02:15; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.6
date: 2015/08/04 06:59:10; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.5
date: 2015/08/04 06:56:05; author: root; state: Exp; lines: +5 -5
*** empty log message ***
—————————-
revision 1.4
date: 2015/08/03 18:38:26; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.3
date: 2015/08/03 18:14:48; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/08/03 18:12:16; author: root; state: Exp; lines: +4 -4
*** empty log message ***
—————————-
revision 1.1
date: 2015/08/03 17:53:18; author: root; state: Exp;
Initial revision
============================================================================RCS file: ./req_mul.c,v
Working file: ./req_mul.c
head: 1.8
branch:
locks: strict
root: 1.8
access list:
symbolic names:
keyword substitution: kv
total revisions: 8; selected revisions: 8
description:
This is the mul req_client
—————————-
revision 1.8 locked by: root;
date: 2015/08/04 07:09:49; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.7
date: 2015/08/04 07:07:32; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.6
date: 2015/08/04 06:59:11; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.5
date: 2015/08/04 06:56:06; author: root; state: Exp; lines: +4 -5
*** empty log message ***
—————————-
revision 1.4
date: 2015/08/03 18:38:27; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.3
date: 2015/08/03 18:14:49; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/08/03 18:12:17; author: root; state: Exp; lines: +4 -4
*** empty log message ***
—————————-
revision 1.1
date: 2015/08/03 17:53:18; author: root; state: Exp;
Initial revision
=============================================================================
=
RCS file: ./server.c,v
Working file: ./server.c
head: 1.4
branch:
locks: strict
root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4; selected revisions: 4
description:
—————————-
revision 1.4 locked by: root;
date: 2015/08/31 18:06:59; author: root; state: Exp; lines: +7 -0
Included comment
—————————-
revision 1.3
date: 2015/08/04 07:09:52; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.2
date: 2015/08/03 18:37:11; author: root; state: Exp; lines: +6 -6
*** empty log message ***
—————————-
revision 1.1
date: 2015/08/03 18:34:43; author: root; state: Exp;
Initial revision
=============================================================================RCS file: ./proc_add.c,v
Working file: ./proc_add.c
head: 1.8
branch:
locks: strict
root: 1.8
access list:
symbolic names:
keyword substitution: kv
total revisions: 8; selected revisions: 8
description:
This is proc_client for adder
—————————-
revision 1.8 locked by: root;
date: 2015/08/31 18:06:54; author: root; state: Exp; lines: +3 -0
Included comment
—————————-
revision 1.7
date: 2015/08/04 07:09:49; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.6
date: 2015/08/04 07:07:33; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.5
date: 2015/08/04 06:56:06; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.4
date: 2015/08/03 18:18:14; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.3
date: 2015/08/03 18:14:49; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.2
date: 2015/08/03 18:12:18; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.1
date: 2015/08/03 17:53:18; author: root; state: Exp;
Initial revision
=============================================================================RCS file: ./proc_sub.c,v
Working file: ./proc_sub.c
head: 1.7
branch:
locks: strict
root: 1.7
access list:
symbolic names:
keyword substitution: kv
total revisions: 7; selected revisions: 7
description:
This is the proc_client for subtractor
—————————-
revision 1.7 locked by: root;
date: 2015/08/04 07:09:50; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.6
date: 2015/08/04 07:07:33; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.5
date: 2015/08/04 06:56:07; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.4
date: 2015/08/03 18:18:15; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.3
date: 2015/08/03 18:14:50; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.2
date: 2015/08/03 18:12:18; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.1
date: 2015/08/03 17:53:18; author: root; state: Exp;
Initial revision
=============================================================================RCS file: ./proc_mul.c,v
Working file: ./proc_mul.c
head: 1.7
branch:
locks: strict
root: 1.7
access list:
symbolic names:
keyword substitution: kv
total revisions: 7; selected revisions: 7
description:
This is the processing client for the multiplier
—————————-
revision 1.7 locked by: root;
date: 2015/08/04 07:09:51; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.6
date: 2015/08/04 07:07:33; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.5
date: 2015/08/04 06:56:08; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.4
date: 2015/08/03 18:18:16; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.3
date: 2015/08/03 18:14:50; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.2
date: 2015/08/03 18:12:19; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.1
date: 2015/08/03 17:53:18; author: root; state: Exp;
Initial revision
=============================================================================

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>