EmbLogic's Blog

IPC using Pipes for single user

RCS file: header.h,v
Working file: header.h
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2;    selected revisions: 2
description:
stdio.h , fcntl.h, unistd.h, sys/types.h are included.
—————————-
revision 1.2    locked by: root;
date: 2015/12/20 20:30:34;  author: root;  state: Exp;  lines: +0 -1
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/20 20:01:44;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: request.h,v
Working file: request.h
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
It contains structure of request.
—————————-
revision 1.1    locked by: root;
date: 2015/12/20 20:01:44;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: adder.c,v
Working file: adder.c
head: 1.4
branch:
locks: strict
root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4;    selected revisions: 4
description:
A function for adding obj1 and obj2 which is contained in request received.
—————————-
revision 1.4    locked by: root;
date: 2015/12/20 21:52:27;  author: root;  state: Exp;  lines: +4 -4
Printing changes.
—————————-
revision 1.3
date: 2015/12/20 21:32:16;  author: root;  state: Exp;  lines: +1 -0
Printing mistake corrected.
—————————-
revision 1.2
date: 2015/12/20 21:22:32;  author: root;  state: Exp;  lines: +12 -4
Result is sent to server.
—————————-
revision 1.1
date: 2015/12/20 21:06:23;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: client1.c,v
Working file: client1.c
head: 1.13
branch:
locks: strict
root: 1.13
access list:
symbolic names:
keyword substitution: kv
total revisions: 13;    selected revisions: 13
description:
request.h , stdio.h, fcntl.h included.
argc has 3 arguments
argv has rfdp,wfdp.
Client writes the message.
—————————-
revision 1.13    locked by: root;
date: 2015/12/20 21:52:27;  author: root;  state: Exp;  lines: +9 -12
Printing Changes
—————————-
revision 1.12
date: 2015/12/20 21:46:04;  author: root;  state: Exp;  lines: +2 -2
obj1 and obj2 value changes
—————————-
revision 1.11
date: 2015/12/20 21:43:02;  author: root;  state: Exp;  lines: +1 -1
Printing change.
—————————-
revision 1.10
date: 2015/12/20 21:41:10;  author: root;  state: Exp;  lines: +13 -2
Client reading result from server
—————————-
revision 1.9
date: 2015/12/20 20:50:38;  author: root;  state: Exp;  lines: +1 -1
Request printed.
—————————-
revision 1.8
date: 2015/12/20 20:48:04;  author: root;  state: Exp;  lines: +1 -1
Request sent
—————————-
revision 1.7
date: 2015/12/20 20:41:57;  author: root;  state: Exp;  lines: +1 -1
argv changed to argv[]
—————————-
revision 1.6
date: 2015/12/20 20:40:43;  author: root;  state: Exp;  lines: +5 -5
*** empty log message ***
—————————-
revision 1.5
date: 2015/12/20 20:38:04;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2015/12/20 20:33:54;  author: root;  state: Exp;  lines: +1 -2
Debugging
—————————-
revision 1.3
date: 2015/12/20 20:32:04;  author: root;  state: Exp;  lines: +2 -1
argc is printed.
—————————-
revision 1.2
date: 2015/12/20 20:27:40;  author: root;  state: Exp;  lines: +1 -0
print statement at starting is added.
—————————-
revision 1.1
date: 2015/12/20 19:55:46;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: client2.c,v
Working file: client2.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
It requests for subtration from server.
—————————-
revision 1.1    locked by: root;
date: 2015/12/20 22:11:46;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: client3.c,v
Working file: client3.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
It is function for multiplication.
—————————-
revision 1.1    locked by: root;
date: 2015/12/20 22:29:00;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: multiplier.c,v
Working file: multiplier.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
Function for multiplier
—————————-
revision 1.1    locked by: root;
date: 2015/12/20 22:09:30;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: server.c,v
Working file: server.c
head: 1.29
branch:
locks: strict
root: 1.29
access list:
symbolic names:
keyword substitution: kv
total revisions: 29;    selected revisions: 29
description:
Server includes header.h,request.h
server creates a pipe(Half duplex)
Server then creates a child.
child is replaced by client.
When pipe(arr) is called , arr[0] has read file descriptor and arr[1]
has write file descriptor.
rfdp and wfdp are passed to child.
server reads the  data written by pipe.
—————————-
revision 1.29    locked by: root;
date: 2015/12/20 22:21:29;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.28
date: 2015/12/20 22:19:00;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.27
date: 2015/12/20 22:16:05;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.26
date: 2015/12/20 22:14:36;  author: root;  state: Exp;  lines: +1 -2
*** empty log message ***
—————————-
revision 1.25
date: 2015/12/20 22:07:12;  author: root;  state: Exp;  lines: +18 -2
Subtractor and multiplier and adder are available operations.
—————————-
revision 1.24
date: 2015/12/20 21:56:07;  author: root;  state: Exp;  lines: +2 -2
Printing changes.
—————————-
revision 1.23
date: 2015/12/20 21:54:17;  author: root;  state: Exp;  lines: +2 -2
Printing changes.
—————————-
revision 1.22
date: 2015/12/20 21:44:51;  author: root;  state: Exp;  lines: +3 -3
Printing change
—————————-
revision 1.21
date: 2015/12/20 21:42:22;  author: root;  state: Exp;  lines: +2 -2
count4 declared.
—————————-
revision 1.20
date: 2015/12/20 21:41:10;  author: root;  state: Exp;  lines: +12 -2
Server writing result to client.
—————————-
revision 1.19
date: 2015/12/20 21:32:16;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.18
date: 2015/12/20 21:30:26;  author: root;  state: Exp;  lines: +12 -5
server read the result and print it.
—————————-
revision 1.17
date: 2015/12/20 21:16:59;  author: root;  state: Exp;  lines: +2 -2
logical error
—————————-
revision 1.16
date: 2015/12/20 21:12:16;  author: root;  state: Exp;  lines: +1 -0
ce
—————————-
revision 1.15
date: 2015/12/20 21:07:57;  author: root;  state: Exp;  lines: +1 -1
fret2 is declared.
—————————-
revision 1.14
date: 2015/12/20 21:06:23;  author: root;  state: Exp;  lines: +35 -5
adder is callled using another pipe and fork.
—————————-
revision 1.13
date: 2015/12/20 20:52:39;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.12
date: 2015/12/20 20:51:47;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.11
date: 2015/12/20 20:50:38;  author: root;  state: Exp;  lines: +1 -1
Request printed.
—————————-
revision 1.10
date: 2015/12/20 20:48:04;  author: root;  state: Exp;  lines: +1 -1
Request received.
—————————-
revision 1.9
date: 2015/12/20 20:44:58;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.8
date: 2015/12/20 20:29:14;  author: root;  state: Exp;  lines: +2 -1
ret=wait()
—————————-
revision 1.7
date: 2015/12/20 20:27:40;  author: root;  state: Exp;  lines: +2 -1
print statement at starting is added.
—————————-
revision 1.6
date: 2015/12/20 20:24:08;  author: root;  state: Exp;  lines: +1 -1
client1 is replaced by client (name change in execl).
—————————-
revision 1.5
date: 2015/12/20 20:22:45;  author: root;  state: Exp;  lines: +4 -1
*** empty log message ***
—————————-
revision 1.4
date: 2015/12/20 20:20:38;  author: root;  state: Exp;  lines: +1 -1
Pipe is created before fork.
—————————-
revision 1.3
date: 2015/12/20 20:19:46;  author: root;  state: Exp;  lines: +4 -2
Some print statements added.
—————————-
revision 1.2
date: 2015/12/20 20:16:56;  author: root;  state: Exp;  lines: +1 -0
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/20 19:55:46;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: subtractor.c,v
Working file: subtractor.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
Function for subtraction.
—————————-
revision 1.1    locked by: root;
date: 2015/12/20 22:09:30;  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>