EmbLogic's Blog

client,server and process communication via pipes

RCS file: RCS/server.c,v
Working file: server.c
head: 1.8
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 8;    selected revisions: 8
description:
program which act as a server to take the request of client
done:created one child process and a pipe
done:replace the child process with client1.c and send pfd[1] to the client as a command line argument
—————————-
revision 1.8
date: 2014/09/24 14:24:48;  author: root;  state: Exp;  lines: +0 -1
change the o/p appearence
—————————-
revision 1.7
date: 2014/09/24 14:12:17;  author: root;  state: Exp;  lines: +42 -10
read result from p1,p2,p3
—————————-
revision 1.6
date: 2014/09/24 13:08:55;  author: root;  state: Exp;  lines: +17 -3
create one more child process to call process1.c
—————————-
revision 1.5
date: 2014/09/24 09:47:40;  author: root;  state: Exp;  lines: +31 -3
read the data from all three client
do switch case to perform different operation
—————————-
revision 1.4
date: 2014/09/24 08:38:36;  author: root;  state: Exp;  lines: +6 -6
create 3 child of same parent to call diff-2 client
—————————-
revision 1.3
date: 2014/09/24 08:14:31;  author: root;  state: Exp;  lines: +18 -7
crate another pipe for communication between server and process
—————————-
revision 1.2
date: 2014/09/24 06:39:04;  author: root;  state: Exp;  lines: +3 -0
read the data through pipe sent by client1
—————————-
revision 1.1
date: 2014/09/24 06:22:18;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: RCS/client1.c,v
Working file: client1.c
head: 1.5
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 5;    selected revisions: 5
description:
client process which will replace the child process
done:create the structure for operand and operation, get the pipe write fd as a command line argument
—————————-
revision 1.5
date: 2014/09/24 14:25:10;  author: root;  state: Exp;  lines: +0 -2
change the o/p appearance
—————————-
revision 1.4
date: 2014/09/24 09:48:23;  author: root;  state: Exp;  lines: +6 -11
write operater and two operand into pipe
—————————-
revision 1.3
date: 2014/09/24 08:15:04;  author: root;  state: Exp;  lines: +3 -1
send the data to server and exit()
—————————-
revision 1.2
date: 2014/09/24 06:39:32;  author: root;  state: Exp;  lines: +5 -1
write the data into pipe so that server can read that
—————————-
revision 1.1
date: 2014/09/24 06:24:50;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: RCS/client2.c,v
Working file: client2.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2;    selected revisions: 2
description:
create client 2 to do the different mathematical operation
—————————-
revision 1.2    locked by: root;
date: 2014/09/24 09:48:57;  author: root;  state: Exp;  lines: +7 -15
write into pipe
—————————-
revision 1.1
date: 2014/09/24 08:39:12;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: RCS/client3.c,v
Working file: client3.c
head: 1.3
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 3;    selected revisions: 3
description:
create client 3
—————————-
revision 1.3
date: 2014/09/24 14:25:40;  author: root;  state: Exp;  lines: +0 -2
change the o/p appearance
—————————-
revision 1.2
date: 2014/09/24 09:49:23;  author: root;  state: Exp;  lines: +6 -13
whrite into pipe
—————————-
revision 1.1
date: 2014/09/24 08:39:54;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: RCS/process1.c,v
Working file: process1.c
head: 1.3
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 3;    selected revisions: 3
description:
this is process program which do the operation on data and return the result
—————————-
revision 1.3
date: 2014/09/24 14:25:49;  author: root;  state: Exp;  lines: +0 -2
change the o/p appearance
—————————-
revision 1.2
date: 2014/09/24 14:13:02;  author: root;  state: Exp;  lines: +8 -3
write the result into pipe in interger form
—————————-
revision 1.1
date: 2014/09/24 13:09:17;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: RCS/process2.c,v
Working file: process2.c
head: 1.2
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 2;    selected revisions: 2
description:
process to perform – operation and writing the result back into the pipe
—————————-
revision 1.2
date: 2014/09/24 14:25:52;  author: root;  state: Exp;  lines: +0 -2
change the o/p appearance
—————————-
revision 1.1
date: 2014/09/24 14:14:17;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: RCS/process3.c,v
Working file: process3.c
head: 1.2
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 2;    selected revisions: 2
description:
process 3 to perform multiplication
—————————-
revision 1.2
date: 2014/09/24 14:25:55;  author: root;  state: Exp;  lines: +0 -2
change the o/p appearance
—————————-
revision 1.1
date: 2014/09/24 14:14:52;  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>