EmbLogic's Blog

client server using fifo for three processing client and one server and three requesting client

RCS file: adder.c,v
Working file: adder.c
head: 1.24
branch:
locks: strict
root: 1.24
access list:
symbolic names:
keyword substitution: kv
total revisions: 24; selected revisions: 24
description:
adder.c accepts recieves the request which is send by the server.
then calculate the result.
and send the result to the server.
—————————-
revision 1.24 locked by: root;
date: 2015/12/30 19:16:32; author: root; state: Exp; lines: +0 -2
*** empty log message ***
—————————-
revision 1.23
date: 2015/12/30 19:07:09; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.22
date: 2015/12/30 19:05:58; author: root; state: Exp; lines: +3 -1
*** empty log message ***
—————————-
revision 1.21
date: 2015/12/30 18:24:37; author: root; state: Exp; lines: +0 -2
*** empty log message ***
—————————-
revision 1.20
date: 2015/12/30 18:18:49; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.19
date: 2015/12/30 18:18:05; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.18
date: 2015/12/30 15:14:23; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.17
date: 2015/12/30 15:13:36; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.16
date: 2015/12/30 14:20:33; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.15
date: 2015/12/30 14:19:28; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.14
date: 2015/12/30 14:17:43; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.13
date: 2015/12/30 14:12:30; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.12
date: 2015/12/30 14:04:43; author: root; state: Exp; lines: +6 -8
*** empty log message ***
—————————-
revision 1.11
date: 2015/12/29 19:17:07; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.10
date: 2015/12/29 19:09:21; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.9
date: 2015/12/29 19:08:06; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.8
date: 2015/12/29 19:03:41; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.7
date: 2015/12/29 18:59:28; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.6
date: 2015/12/29 18:58:27; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.5
date: 2015/12/29 18:50:33; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.4
date: 2015/12/29 18:45:28; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/12/29 18:43:35; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/29 18:41:25; author: root; state: Exp; lines: +4 -1
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/29 18:32:26; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: client1.c,v
Working file: client1.c
head: 1.36
branch:
locks: strict
root: 1.36
access list:
symbolic names:
keyword substitution: kv
total revisions: 36; selected revisions: 36
description:
opening the file in wronly mode
and write the sends the request to sender.
—————————-
revision 1.36 locked by: root;
date: 2015/12/31 05:50:56; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.35
date: 2015/12/31 05:49:35; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.34
date: 2015/12/31 05:45:08; author: root; state: Exp; lines: +3 -2
*** empty log message ***
—————————-
revision 1.33
date: 2015/12/30 19:16:32; author: root; state: Exp; lines: +0 -3
*** empty log message ***
—————————-
revision 1.32
date: 2015/12/30 19:05:58; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.31
date: 2015/12/30 19:00:47; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.30
date: 2015/12/30 18:54:10; author: root; state: Exp; lines: +1 -2
*** empty log message ***
—————————-
revision 1.29
date: 2015/12/30 18:37:31; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.28
date: 2015/12/30 18:33:43; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.27
date: 2015/12/30 18:24:37; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.26
date: 2015/12/30 18:16:02; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.25
date: 2015/12/30 17:48:56; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.24
date: 2015/12/30 17:46:57; author: root; state: Exp; lines: +4 -4
*** empty log message ***
—————————-
revision 1.23
date: 2015/12/30 16:19:07; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.22
date: 2015/12/30 15:00:32; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.21
date: 2015/12/30 14:57:22; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.20
date: 2015/12/30 14:53:19; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.19
date: 2015/12/30 14:45:11; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.18
date: 2015/12/30 14:37:03; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.17
date: 2015/12/30 14:36:26; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.16
date: 2015/12/30 14:30:11; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.15
date: 2015/12/30 14:28:40; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.14
date: 2015/12/30 14:04:43; author: root; state: Exp; lines: +16 -0
*** empty log message ***
—————————-
revision 1.13
date: 2015/12/30 12:47:14; author: root; state: Exp; lines: +0 -5
*** empty log message ***
—————————-
revision 1.12
date: 2015/12/29 19:31:50; author: root; state: Exp; lines: +4 -3
*** empty log message ***
—————————-
revision 1.11
date: 2015/12/29 19:28:36; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.10
date: 2015/12/29 19:22:10; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.9
date: 2015/12/29 19:17:07; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.8
date: 2015/12/29 19:08:06; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.7
date: 2015/12/29 19:06:27; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.6
date: 2015/12/29 19:03:41; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.5
date: 2015/12/29 18:50:33; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.4
date: 2015/12/29 18:41:25; author: root; state: Exp; lines: +4 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/12/29 15:28:11; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/29 15:26:17; author: root; state: Exp; lines: +4 -10
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/29 15:18:31; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: client2.c,v
Working file: client2.c
head: 1.4
branch:
locks: strict
root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4; selected revisions: 4
description:
this is a another client program.
it sends the request and makes a named pipe client fifo.
and lastly recirve the result and print also.
—————————-
revision 1.4 locked by: root;
date: 2015/12/31 06:33:48; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/12/31 06:30:57; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/31 06:25:34; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/31 06:19:25; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: client3.c,v
Working file: client3.c
head: 1.4
branch:
locks: strict
root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4; selected revisions: 4
description:
this is third client sends the another request to client.
and also after recieve the result print the result.
—————————-
revision 1.4 locked by: root;
date: 2015/12/31 06:57:45; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/12/31 06:57:10; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/31 06:56:14; author: root; state: Exp; lines: +5 -5
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/31 06:52:59; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: multiplier.c,v
Working file: multiplier.c
head: 1.3
branch:
locks: strict
root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
perform the request of third client which is sended by server.
—————————-
revision 1.3 locked by: root;
date: 2015/12/31 06:57:10; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/31 06:56:14; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/31 06:52:59; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: server.c,v
Working file: server.c
head: 1.82
branch:
locks: strict
root: 1.82
access list:
symbolic names:
keyword substitution: kv
total revisions: 82; selected revisions: 82
description:
opening the file in read only mode.
and accepts the request.

create p named pipe.
—————————-
revision 1.82 locked by: root;
date: 2015/12/31 07:52:42; author: root; state: Exp; lines: +0 -3
*** empty log message ***
—————————-
revision 1.81
date: 2015/12/31 07:49:03; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.80
date: 2015/12/31 07:47:59; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.79
date: 2015/12/31 07:46:59; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.78
date: 2015/12/31 07:45:40; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.77
date: 2015/12/31 07:43:49; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.76
date: 2015/12/31 07:40:00; author: root; state: Exp; lines: +1 -3
*** empty log message ***
—————————-
revision 1.75
date: 2015/12/31 07:34:51; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.74
date: 2015/12/31 07:32:47; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.73
date: 2015/12/31 07:29:35; author: root; state: Exp; lines: +3 -0
*** empty log message ***
—————————-
revision 1.72
date: 2015/12/31 07:26:04; author: root; state: Exp; lines: +0 -3
*** empty log message ***
—————————-
revision 1.71
date: 2015/12/31 07:24:18; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.70
date: 2015/12/31 07:23:07; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.69
date: 2015/12/31 07:21:59; author: root; state: Exp; lines: +1 -2
*** empty log message ***
—————————-
revision 1.68
date: 2015/12/31 07:19:37; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.67
date: 2015/12/31 07:17:02; author: root; state: Exp; lines: +3 -2
*** empty log message ***
—————————-
revision 1.66
date: 2015/12/31 07:09:57; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.65
date: 2015/12/31 07:09:05; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.64
date: 2015/12/31 07:02:57; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.63
date: 2015/12/31 06:52:59; author: root; state: Exp; lines: +38 -3
create a pipe b/w third client and server.
—————————-
revision 1.62
date: 2015/12/31 06:33:48; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.61
date: 2015/12/31 06:32:12; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.60
date: 2015/12/31 06:30:57; author: root; state: Exp; lines: +12 -12
*** empty log message ***
—————————-
revision 1.59
date: 2015/12/31 06:24:32; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.58
date: 2015/12/31 06:19:25; author: root; state: Exp; lines: +39 -5
accepts the swcond requesting client.
and also make pipe b/w processinf client and sercer.
—————————-
revision 1.57
date: 2015/12/31 05:48:58; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.56
date: 2015/12/31 05:46:52; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.55
date: 2015/12/31 05:45:08; author: root; state: Exp; lines: +5 -4
*** empty log message ***
—————————-
revision 1.54
date: 2015/12/31 05:25:08; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.53
date: 2015/12/30 19:16:32; author: root; state: Exp; lines: +0 -3
*** empty log message ***
—————————-
revision 1.52
date: 2015/12/30 19:05:58; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.51
date: 2015/12/30 19:01:39; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.50
date: 2015/12/30 19:00:47; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.49
date: 2015/12/30 18:58:47; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.48
date: 2015/12/30 18:57:23; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.47
date: 2015/12/30 18:54:10; author: root; state: Exp; lines: +1 -3
*** empty log message ***
—————————-
revision 1.46
date: 2015/12/30 18:36:23; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.45
date: 2015/12/30 18:35:10; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.44
date: 2015/12/30 18:33:43; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.43
date: 2015/12/30 18:24:37; author: root; state: Exp; lines: +0 -2
*** empty log message ***
—————————-
revision 1.42
date: 2015/12/30 18:18:05; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.41
date: 2015/12/30 18:14:49; author: root; state: Exp; lines: +1 -2
*** empty log message ***
—————————-
revision 1.40
date: 2015/12/30 18:13:30; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.39
date: 2015/12/30 18:11:56; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.38
date: 2015/12/30 18:10:54; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.37
date: 2015/12/30 18:06:51; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.36
date: 2015/12/30 18:03:40; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.35
date: 2015/12/30 17:54:32; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.34
date: 2015/12/30 17:48:56; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.33
date: 2015/12/30 17:46:57; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.32
date: 2015/12/30 17:27:51; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.31
date: 2015/12/30 17:26:15; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.30
date: 2015/12/30 16:20:41; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.29
date: 2015/12/30 16:19:07; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.28
date: 2015/12/30 15:18:08; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.27
date: 2015/12/30 15:00:32; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.26
date: 2015/12/30 14:57:22; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.25
date: 2015/12/30 14:53:19; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.24
date: 2015/12/30 14:22:57; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.23
date: 2015/12/30 14:12:30; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.22
date: 2015/12/30 14:08:53; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.21
date: 2015/12/30 14:04:43; author: root; state: Exp; lines: +30 -1
*** empty log message ***
—————————-
revision 1.20
date: 2015/12/30 12:48:16; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.19
date: 2015/12/30 12:47:14; author: root; state: Exp; lines: +0 -33
*** empty log message ***
—————————-
revision 1.18
date: 2015/12/29 21:22:40; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.17
date: 2015/12/29 21:19:15; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.16
date: 2015/12/29 20:45:06; author: root; state: Exp; lines: +3 -2
*** empty log message ***
—————————-
revision 1.15
date: 2015/12/29 19:19:17; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.14
date: 2015/12/29 19:17:07; author: root; state: Exp; lines: +4 -1
*** empty log message ***
—————————-
revision 1.13
date: 2015/12/29 19:09:21; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.12
date: 2015/12/29 19:03:41; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.11
date: 2015/12/29 19:00:11; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.10
date: 2015/12/29 18:58:27; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.9
date: 2015/12/29 18:50:33; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.8
date: 2015/12/29 18:43:35; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.7
date: 2015/12/29 18:41:25; author: root; state: Exp; lines: +29 -1
*** empty log message ***
—————————-
revision 1.6
date: 2015/12/29 18:32:26; author: root; state: Exp; lines: +1 -1
recieves the result and send the result to the client.
—————————-
revision 1.5
date: 2015/12/29 15:31:28; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2015/12/29 15:30:20; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/12/29 15:28:11; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/29 15:26:17; author: root; state: Exp; lines: +8 -3
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/29 15:18:31; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: substractor.c,v
Working file: substractor.c
head: 1.3
branch:
locks: strict
root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
perform the operation of second requesting client.
—————————-
revision 1.3 locked by: root;
date: 2015/12/31 06:30:57; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/31 06:24:32; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/31 06:19:25; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: declarations.h,v
Working file: declarations.h
head: 1.6
branch:
locks: strict
root: 1.6
access list:
symbolic names:
keyword substitution: kv
total revisions: 6; selected revisions: 6
description:
declared fifo name using macro.
—————————-
revision 1.6 locked by: root;
date: 2015/12/30 17:50:25; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2015/12/30 16:19:13; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2015/12/30 14:46:36; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/12/30 14:05:31; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/29 15:30:21; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/29 15:21:11; author: root; state: Exp;
Initial revision
=============================================================================

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:
all required header files are included here.
—————————-
revision 1.2 locked by: root;
date: 2015/12/29 15:32:33; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/29 15:21:11; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: request.h,v
Working file: request.h
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
define the structure.
—————————-
revision 1.2 locked by: root;
date: 2015/12/30 14:05:31; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/29 15:21:11; author: root; state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

Client server using pipes and fifo for n users

RCS file: adder.c,v
Working file: adder.c
head: 1.24
branch:
locks: strict
root: 1.24
access list:
symbolic names:
keyword substitution: kv
total revisions: 24; selected revisions: 24
description:
adder.c accepts recieves the request which is send by the server.
then calculate the result.
and send the result to the server.
—————————-
revision 1.24 locked by: root;
date: 2015/12/30 19:16:32; author: root; state: Exp; lines: +0 -2
*** empty log message ***
—————————-
revision 1.23
date: 2015/12/30 19:07:09; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.22
date: 2015/12/30 19:05:58; author: root; state: Exp; lines: +3 -1
*** empty log message ***
—————————-
revision 1.21
date: 2015/12/30 18:24:37; author: root; state: Exp; lines: +0 -2
*** empty log message ***
—————————-
revision 1.20
date: 2015/12/30 18:18:49; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.19
date: 2015/12/30 18:18:05; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.18
date: 2015/12/30 15:14:23; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.17
date: 2015/12/30 15:13:36; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.16
date: 2015/12/30 14:20:33; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.15
date: 2015/12/30 14:19:28; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.14
date: 2015/12/30 14:17:43; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.13
date: 2015/12/30 14:12:30; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.12
date: 2015/12/30 14:04:43; author: root; state: Exp; lines: +6 -8
*** empty log message ***
—————————-
revision 1.11
date: 2015/12/29 19:17:07; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.10
date: 2015/12/29 19:09:21; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.9
date: 2015/12/29 19:08:06; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.8
date: 2015/12/29 19:03:41; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.7
date: 2015/12/29 18:59:28; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.6
date: 2015/12/29 18:58:27; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.5
date: 2015/12/29 18:50:33; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.4
date: 2015/12/29 18:45:28; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/12/29 18:43:35; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/29 18:41:25; author: root; state: Exp; lines: +4 -1
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/29 18:32:26; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: client1.c,v
Working file: client1.c
head: 1.74
branch:
locks: strict
root: 1.74
access list:
symbolic names:
keyword substitution: kv
total revisions: 74; selected revisions: 74
description:
opening the file in wronly mode
and write the sends the request to sender.
—————————-
revision 1.74 locked by: root;
date: 2016/01/06 19:48:23; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.73
date: 2016/01/06 15:40:49; author: root; state: Exp; lines: +10 -0
*** empty log message ***
—————————-
revision 1.72
date: 2016/01/06 15:22:24; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.71
date: 2016/01/05 06:33:21; author: root; state: Exp; lines: +1 -7
*** empty log message ***
—————————-
revision 1.70
date: 2016/01/05 06:20:19; author: root; state: Exp; lines: +6 -6
*** empty log message ***
—————————-
revision 1.69
date: 2016/01/05 06:07:54; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.68
date: 2016/01/05 05:52:17; author: root; state: Exp; lines: +0 -2
*** empty log message ***
—————————-
revision 1.67
date: 2016/01/05 05:48:55; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.66
date: 2016/01/05 05:20:25; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.65
date: 2016/01/05 05:06:26; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.64
date: 2016/01/04 17:53:45; author: root; state: Exp; lines: +1 -2
*** empty log message ***
—————————-
revision 1.63
date: 2016/01/04 17:14:18; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.62
date: 2016/01/04 16:41:13; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.61
date: 2016/01/04 16:30:34; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.60
date: 2016/01/04 15:42:27; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.59
date: 2016/01/04 15:41:23; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.58
date: 2016/01/04 15:40:25; author: root; state: Exp; lines: +1 -2
*** empty log message ***
—————————-
revision 1.57
date: 2016/01/04 15:39:01; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.56
date: 2016/01/04 15:37:23; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.55
date: 2016/01/04 15:35:57; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.54
date: 2016/01/04 15:03:47; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.53
date: 2016/01/04 14:57:10; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.52
date: 2016/01/04 14:47:41; author: root; state: Exp; lines: +7 -2
*** empty log message ***
—————————-
revision 1.51
date: 2016/01/04 14:34:10; author: root; state: Exp; lines: +4 -17
*** empty log message ***
—————————-
revision 1.50
date: 2016/01/04 14:22:00; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.49
date: 2016/01/04 13:59:20; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.48
date: 2016/01/04 13:58:22; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.47
date: 2016/01/04 13:57:38; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.46
date: 2016/01/04 13:54:24; author: root; state: Exp; lines: +16 -6
*** empty log message ***
—————————-
revision 1.45
date: 2016/01/04 13:07:40; author: root; state: Exp; lines: +1 -6
*** empty log message ***
—————————-
revision 1.44
date: 2016/01/04 12:39:23; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.43
date: 2016/01/04 12:37:33; author: root; state: Exp; lines: +6 -2
*** empty log message ***
—————————-
revision 1.42
date: 2016/01/04 12:10:54; author: root; state: Exp; lines: +1 -6
*** empty log message ***
—————————-
revision 1.41
date: 2016/01/04 11:55:53; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.40
date: 2016/01/04 11:52:20; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.39
date: 2016/01/04 11:51:14; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.38
date: 2016/01/04 11:50:23; author: root; state: Exp; lines: +6 -1
*** empty log message ***
—————————-
revision 1.37
date: 2016/01/04 11:09:07; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.36
date: 2015/12/31 05:50:56; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.35
date: 2015/12/31 05:49:35; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.34
date: 2015/12/31 05:45:08; author: root; state: Exp; lines: +3 -2
*** empty log message ***
—————————-
revision 1.33
date: 2015/12/30 19:16:32; author: root; state: Exp; lines: +0 -3
*** empty log message ***
—————————-
revision 1.32
date: 2015/12/30 19:05:58; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.31
date: 2015/12/30 19:00:47; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.30
date: 2015/12/30 18:54:10; author: root; state: Exp; lines: +1 -2
*** empty log message ***
—————————-
revision 1.29
date: 2015/12/30 18:37:31; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.28
date: 2015/12/30 18:33:43; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.27
date: 2015/12/30 18:24:37; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.26
date: 2015/12/30 18:16:02; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.25
date: 2015/12/30 17:48:56; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.24
date: 2015/12/30 17:46:57; author: root; state: Exp; lines: +4 -4
*** empty log message ***
—————————-
revision 1.23
date: 2015/12/30 16:19:07; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.22
date: 2015/12/30 15:00:32; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.21
date: 2015/12/30 14:57:22; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.20
date: 2015/12/30 14:53:19; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.19
date: 2015/12/30 14:45:11; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.18
date: 2015/12/30 14:37:03; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.17
date: 2015/12/30 14:36:26; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.16
date: 2015/12/30 14:30:11; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.15
date: 2015/12/30 14:28:40; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.14
date: 2015/12/30 14:04:43; author: root; state: Exp; lines: +16 -0
*** empty log message ***
—————————-
revision 1.13
date: 2015/12/30 12:47:14; author: root; state: Exp; lines: +0 -5
*** empty log message ***
—————————-
revision 1.12
date: 2015/12/29 19:31:50; author: root; state: Exp; lines: +4 -3
*** empty log message ***
—————————-
revision 1.11
date: 2015/12/29 19:28:36; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.10
date: 2015/12/29 19:22:10; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.9
date: 2015/12/29 19:17:07; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.8
date: 2015/12/29 19:08:06; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.7
date: 2015/12/29 19:06:27; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.6
date: 2015/12/29 19:03:41; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.5
date: 2015/12/29 18:50:33; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.4
date: 2015/12/29 18:41:25; author: root; state: Exp; lines: +4 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/12/29 15:28:11; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/29 15:26:17; author: root; state: Exp; lines: +4 -10
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/29 15:18:31; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: client2.c,v
Working file: client2.c
head: 1.18
branch:
locks: strict
root: 1.18
access list:
symbolic names:
keyword substitution: kv
total revisions: 18; selected revisions: 18
description:
this is a another client program.
it sends the request and makes a named pipe client fifo.
and lastly recirve the result and print also.
—————————-
revision 1.18 locked by: root;
date: 2016/01/05 06:35:06; author: root; state: Exp; lines: +1 -9
*** empty log message ***
—————————-
revision 1.17
date: 2016/01/05 06:29:02; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.16
date: 2016/01/05 06:21:21; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.15
date: 2016/01/05 06:20:19; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.14
date: 2016/01/05 06:10:25; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.13
date: 2016/01/04 17:22:40; author: root; state: Exp; lines: +0 -3
*** empty log message ***
—————————-
revision 1.12
date: 2016/01/04 17:14:18; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.11
date: 2016/01/04 15:44:32; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.10
date: 2016/01/04 14:34:10; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.9
date: 2016/01/04 12:53:18; author: root; state: Exp; lines: +9 -2
*** empty log message ***
—————————-
revision 1.8
date: 2016/01/04 12:10:54; author: root; state: Exp; lines: +1 -9
*** empty log message ***
—————————-
revision 1.7
date: 2016/01/04 11:55:53; author: root; state: Exp; lines: +9 -0
*** empty log message ***
—————————-
revision 1.6
date: 2016/01/04 11:17:29; author: root; state: Exp; lines: +1 -2
*** empty log message ***
—————————-
revision 1.5
date: 2016/01/04 11:15:39; author: root; state: Exp; lines: +1 -0
insert while loop infinitely.
—————————-
revision 1.4
date: 2015/12/31 06:33:48; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/12/31 06:30:57; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/31 06:25:34; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/31 06:19:25; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: client3.c,v
Working file: client3.c
head: 1.14
branch:
locks: strict
root: 1.14
access list:
symbolic names:
keyword substitution: kv
total revisions: 14; selected revisions: 14
description:
this is third client sends the another request to client.
and also after recieve the result print the result.
—————————-
revision 1.14 locked by: root;
date: 2016/01/05 06:35:06; author: root; state: Exp; lines: +1 -10
*** empty log message ***
—————————-
revision 1.13
date: 2016/01/05 06:29:02; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.12
date: 2016/01/05 06:25:14; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.11
date: 2016/01/05 06:22:01; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.10
date: 2016/01/05 06:20:19; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.9
date: 2016/01/05 06:10:25; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.8
date: 2016/01/04 17:14:18; author: root; state: Exp; lines: +7 -0
*** empty log message ***
—————————-
revision 1.7
date: 2016/01/04 14:47:41; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.6
date: 2016/01/04 12:10:54; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.5
date: 2016/01/04 11:15:39; author: root; state: Exp; lines: +1 -1
insert while loop infinitely.
—————————-
revision 1.4
date: 2015/12/31 06:57:45; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/12/31 06:57:10; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/31 06:56:14; author: root; state: Exp; lines: +5 -5
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/31 06:52:59; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: multiplier.c,v
Working file: multiplier.c
head: 1.3
branch:
locks: strict
root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
perform the request of third client which is sended by server.
—————————-
revision 1.3 locked by: root;
date: 2015/12/31 06:57:10; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/31 06:56:14; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/31 06:52:59; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: server.c,v
Working file: server.c
head: 1.143
branch:
locks: strict
root: 1.143
access list:
symbolic names:
keyword substitution: kv
total revisions: 143; selected revisions: 143
description:
opening the file in read only mode.
and accepts the request.

create p named pipe.
—————————-
revision 1.143 locked by: root;
date: 2016/01/06 19:50:19; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.142
date: 2016/01/06 19:49:06; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.141
date: 2016/01/06 19:42:53; author: root; state: Exp; lines: +4 -1
*** empty log message ***
—————————-
revision 1.140
date: 2016/01/06 19:39:59; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.139
date: 2016/01/06 19:36:11; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.138
date: 2016/01/06 19:30:27; author: root; state: Exp; lines: +3 -2
*** empty log message ***
—————————-
revision 1.137
date: 2016/01/06 15:40:49; author: root; state: Exp; lines: +6 -1
*** empty log message ***
—————————-
revision 1.136
date: 2016/01/06 15:35:54; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.135
date: 2016/01/06 15:33:55; author: root; state: Exp; lines: +2 -4
*** empty log message ***
—————————-
revision 1.134
date: 2016/01/06 15:31:27; author: root; state: Exp; lines: +3 -2
*** empty log message ***
—————————-
revision 1.133
date: 2016/01/06 15:25:32; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.132
date: 2016/01/06 15:23:17; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.131
date: 2016/01/06 15:22:24; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.130
date: 2016/01/06 15:17:34; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.129
date: 2016/01/06 15:15:57; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.128
date: 2016/01/06 15:14:52; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.127
date: 2016/01/06 09:52:33; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.126
date: 2016/01/06 09:48:35; author: root; state: Exp; lines: +2 -3
*** empty log message ***
—————————-
revision 1.125
date: 2016/01/06 09:47:26; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.124
date: 2016/01/06 09:46:21; author: root; state: Exp; lines: +0 -2
*** empty log message ***
—————————-
revision 1.123
date: 2016/01/06 09:43:09; author: root; state: Exp; lines: +3 -0
*** empty log message ***
—————————-
revision 1.122
date: 2016/01/06 09:40:31; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.121
date: 2016/01/06 09:39:40; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.120
date: 2016/01/06 09:38:46; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.119
date: 2016/01/06 09:37:08; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.118
date: 2016/01/06 08:34:43; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.117
date: 2016/01/05 08:51:29; author: root; state: Exp; lines: +1 -1
initialize i.
—————————-
revision 1.116
date: 2016/01/05 08:49:19; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.115
date: 2016/01/05 08:44:07; author: root; state: Exp; lines: +3 -1
print number of client implemente in server.
—————————-
revision 1.114
date: 2016/01/05 06:47:44; author: root; state: Exp; lines: +0 -3
*** empty log message ***
—————————-
revision 1.113
date: 2016/01/05 06:03:48; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.112
date: 2016/01/05 05:58:11; author: root; state: Exp; lines: +3 -1
*** empty log message ***
—————————-
revision 1.111
date: 2016/01/05 05:32:17; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.110
date: 2016/01/05 05:24:45; author: root; state: Exp; lines: +1 -2
*** empty log message ***
—————————-
revision 1.109
date: 2016/01/05 05:22:03; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.108
date: 2016/01/05 05:17:59; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.107
date: 2016/01/04 18:11:08; author: root; state: Exp; lines: +4 -0
*** empty log message ***
—————————-
revision 1.106
date: 2016/01/04 18:08:07; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.105
date: 2016/01/04 18:06:48; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.104
date: 2016/01/04 17:53:45; author: root; state: Exp; lines: +0 -2
*** empty log message ***
—————————-
revision 1.103
date: 2016/01/04 17:41:13; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.102
date: 2016/01/04 17:38:58; author: root; state: Exp; lines: +0 -2
*** empty log message ***
—————————-
revision 1.101
date: 2016/01/04 17:29:43; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.100
date: 2016/01/04 17:28:43; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.99
date: 2016/01/04 17:25:32; author: root; state: Exp; lines: +1 -5
*** empty log message ***
—————————-
revision 1.98
date: 2016/01/04 17:22:40; author: root; state: Exp; lines: +4 -4
*** empty log message ***
—————————-
revision 1.97
date: 2016/01/04 15:03:47; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.96
date: 2016/01/04 14:57:10; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.95
date: 2016/01/04 14:52:09; author: root; state: Exp; lines: +3 -6
*** empty log message ***
—————————-
revision 1.94
date: 2016/01/04 14:41:45; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.93
date: 2016/01/04 14:30:27; author: root; state: Exp; lines: +5 -1
*** empty log message ***
—————————-
revision 1.92
date: 2016/01/04 14:13:23; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.91
date: 2016/01/04 14:12:11; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.90
date: 2016/01/04 14:10:57; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.89
date: 2016/01/04 13:54:24; author: root; state: Exp; lines: +0 -6
*** empty log message ***
—————————-
revision 1.88
date: 2016/01/04 13:01:22; author: root; state: Exp; lines: +5 -5
*** empty log message ***
—————————-
revision 1.87
date: 2016/01/04 12:24:24; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.86
date: 2016/01/04 12:10:54; author: root; state: Exp; lines: +9 -1
*** empty log message ***
—————————-
revision 1.85
date: 2016/01/04 12:04:38; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.84
date: 2016/01/04 11:42:01; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.83
date: 2016/01/04 11:39:34; author: root; state: Exp; lines: +15 -76
*** empty log message ***
—————————-
revision 1.82
date: 2015/12/31 07:52:42; author: root; state: Exp; lines: +0 -3
*** empty log message ***
—————————-
revision 1.81
date: 2015/12/31 07:49:03; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.80
date: 2015/12/31 07:47:59; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.79
date: 2015/12/31 07:46:59; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.78
date: 2015/12/31 07:45:40; author: root; state: Exp; lines: +2 -0
*** empty log message ***
—————————-
revision 1.77
date: 2015/12/31 07:43:49; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.76
date: 2015/12/31 07:40:00; author: root; state: Exp; lines: +1 -3
*** empty log message ***
—————————-
revision 1.75
date: 2015/12/31 07:34:51; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.74
date: 2015/12/31 07:32:47; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.73
date: 2015/12/31 07:29:35; author: root; state: Exp; lines: +3 -0
*** empty log message ***
—————————-
revision 1.72
date: 2015/12/31 07:26:04; author: root; state: Exp; lines: +0 -3
*** empty log message ***
—————————-
revision 1.71
date: 2015/12/31 07:24:18; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.70
date: 2015/12/31 07:23:07; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.69
date: 2015/12/31 07:21:59; author: root; state: Exp; lines: +1 -2
*** empty log message ***
—————————-
revision 1.68
date: 2015/12/31 07:19:37; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.67
date: 2015/12/31 07:17:02; author: root; state: Exp; lines: +3 -2
*** empty log message ***
—————————-
revision 1.66
date: 2015/12/31 07:09:57; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.65
date: 2015/12/31 07:09:05; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.64
date: 2015/12/31 07:02:57; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.63
date: 2015/12/31 06:52:59; author: root; state: Exp; lines: +38 -3
create a pipe b/w third client and server.
—————————-
revision 1.62
date: 2015/12/31 06:33:48; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.61
date: 2015/12/31 06:32:12; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.60
date: 2015/12/31 06:30:57; author: root; state: Exp; lines: +12 -12
*** empty log message ***
—————————-
revision 1.59
date: 2015/12/31 06:24:32; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.58
date: 2015/12/31 06:19:25; author: root; state: Exp; lines: +39 -5
accepts the swcond requesting client.
and also make pipe b/w processinf client and sercer.
—————————-
revision 1.57
date: 2015/12/31 05:48:58; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.56
date: 2015/12/31 05:46:52; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.55
date: 2015/12/31 05:45:08; author: root; state: Exp; lines: +5 -4
*** empty log message ***
—————————-
revision 1.54
date: 2015/12/31 05:25:08; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.53
date: 2015/12/30 19:16:32; author: root; state: Exp; lines: +0 -3
*** empty log message ***
—————————-
revision 1.52
date: 2015/12/30 19:05:58; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.51
date: 2015/12/30 19:01:39; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.50
date: 2015/12/30 19:00:47; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.49
date: 2015/12/30 18:58:47; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.48
date: 2015/12/30 18:57:23; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.47
date: 2015/12/30 18:54:10; author: root; state: Exp; lines: +1 -3
*** empty log message ***
—————————-
revision 1.46
date: 2015/12/30 18:36:23; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.45
date: 2015/12/30 18:35:10; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.44
date: 2015/12/30 18:33:43; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.43
date: 2015/12/30 18:24:37; author: root; state: Exp; lines: +0 -2
*** empty log message ***
—————————-
revision 1.42
date: 2015/12/30 18:18:05; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.41
date: 2015/12/30 18:14:49; author: root; state: Exp; lines: +1 -2
*** empty log message ***
—————————-
revision 1.40
date: 2015/12/30 18:13:30; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.39
date: 2015/12/30 18:11:56; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.38
date: 2015/12/30 18:10:54; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.37
date: 2015/12/30 18:06:51; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.36
date: 2015/12/30 18:03:40; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.35
date: 2015/12/30 17:54:32; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.34
date: 2015/12/30 17:48:56; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.33
date: 2015/12/30 17:46:57; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.32
date: 2015/12/30 17:27:51; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.31
date: 2015/12/30 17:26:15; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.30
date: 2015/12/30 16:20:41; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.29
date: 2015/12/30 16:19:07; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.28
date: 2015/12/30 15:18:08; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.27
date: 2015/12/30 15:00:32; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.26
date: 2015/12/30 14:57:22; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.25
date: 2015/12/30 14:53:19; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.24
date: 2015/12/30 14:22:57; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.23
date: 2015/12/30 14:12:30; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.22
date: 2015/12/30 14:08:53; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.21
date: 2015/12/30 14:04:43; author: root; state: Exp; lines: +30 -1
*** empty log message ***
—————————-
revision 1.20
date: 2015/12/30 12:48:16; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.19
date: 2015/12/30 12:47:14; author: root; state: Exp; lines: +0 -33
*** empty log message ***
—————————-
revision 1.18
date: 2015/12/29 21:22:40; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.17
date: 2015/12/29 21:19:15; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.16
date: 2015/12/29 20:45:06; author: root; state: Exp; lines: +3 -2
*** empty log message ***
—————————-
revision 1.15
date: 2015/12/29 19:19:17; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.14
date: 2015/12/29 19:17:07; author: root; state: Exp; lines: +4 -1
*** empty log message ***
—————————-
revision 1.13
date: 2015/12/29 19:09:21; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.12
date: 2015/12/29 19:03:41; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.11
date: 2015/12/29 19:00:11; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.10
date: 2015/12/29 18:58:27; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.9
date: 2015/12/29 18:50:33; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.8
date: 2015/12/29 18:43:35; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.7
date: 2015/12/29 18:41:25; author: root; state: Exp; lines: +29 -1
*** empty log message ***
—————————-
revision 1.6
date: 2015/12/29 18:32:26; author: root; state: Exp; lines: +1 -1
recieves the result and send the result to the client.
—————————-
revision 1.5
date: 2015/12/29 15:31:28; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2015/12/29 15:30:20; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/12/29 15:28:11; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/29 15:26:17; author: root; state: Exp; lines: +8 -3
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/29 15:18:31; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: substractor.c,v
Working file: substractor.c
head: 1.3
branch:
locks: strict
root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
perform the operation of second requesting client.
—————————-
revision 1.3 locked by: root;
date: 2015/12/31 06:30:57; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/31 06:24:32; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/31 06:19:25; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: declarations.h,v
Working file: declarations.h
head: 1.6
branch:
locks: strict
root: 1.6
access list:
symbolic names:
keyword substitution: kv
total revisions: 6; selected revisions: 6
description:
declared fifo name using macro.
—————————-
revision 1.6 locked by: root;
date: 2015/12/30 17:50:25; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2015/12/30 16:19:13; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2015/12/30 14:46:36; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/12/30 14:05:31; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/29 15:30:21; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/29 15:21:11; author: root; state: Exp;
Initial revision
=============================================================================

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:
all required header files are included here.
—————————-
revision 1.3 locked by: root;
date: 2016/01/04 11:32:47; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/29 15:32:33; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/29 15:21:11; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: request.h,v
Working file: request.h
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
define the structure.
—————————-
revision 1.2 locked by: root;
date: 2015/12/30 14:05:31; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/29 15:21:11; author: root; state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

CIient Server using IPC for FIFO,Pipes and Signals for n clients

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:
It includes basic headerfiles for FIFOs.
It contains stdio.h, fcntl.h, unistd.h, sys/types.h, sys/stat.h
It contains #ifndef HEADERS to avoid multiple declaration of heders by differnt files.
—————————-
revision 1.2    locked by: root;
date: 2016/01/01 02:10:15;  author: root;  state: Exp;  lines: +1 -0
signal.h is included for using kill operation.
—————————-
revision 1.1
date: 2015/12/21 04:54:01;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: request.h,v
Working file: request.h
head: 1.19
branch:
locks: strict
root: 1.19
access list:
symbolic names:
keyword substitution: kv
total revisions: 19;    selected revisions: 19
description:
It contains struct request
It is format of basic client request.
It contains client PID, 2 objects,operation to be performed.
—————————-
revision 1.19    locked by: root;
date: 2016/01/06 10:22:24;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.18
date: 2016/01/04 11:02:29;  author: root;  state: Exp;  lines: +1 -1
maximum clients are changed from 1000 to 10000.
—————————-
revision 1.17
date: 2016/01/04 10:39:25;  author: root;  state: Exp;  lines: +1 -1
No. of MAX_CLIENT increased to 1000.
—————————-
revision 1.16
date: 2016/01/01 02:30:39;  author: root;  state: Exp;  lines: +1 -1
No. of clients = 100
—————————-
revision 1.15
date: 2016/01/01 02:13:15;  author: root;  state: Exp;  lines: +2 -0
signal.h is included.
—————————-
revision 1.14
date: 2015/12/21 09:54:15;  author: root;  state: Exp;  lines: +1 -1
CIIENT_MAX = 5
—————————-
revision 1.13
date: 2015/12/21 09:45:17;  author: root;  state: Exp;  lines: +1 -1
No. of clients increased to 1114.
—————————-
revision 1.12
date: 2015/12/21 09:27:52;  author: root;  state: Exp;  lines: +1 -1
No. of clients is 114.
—————————-
revision 1.11
date: 2015/12/21 09:13:31;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.10
date: 2015/12/21 09:07:47;  author: root;  state: Exp;  lines: +1 -1
No. of clients is increased from 4 to 5.
—————————-
revision 1.9
date: 2015/12/21 08:50:23;  author: root;  state: Exp;  lines: +1 -1
No. of MAX_CLIENT becomes 4
—————————-
revision 1.8
date: 2015/12/21 07:09:44;  author: root;  state: Exp;  lines: +1 -0
*** empty log message ***
—————————-
revision 1.7
date: 2015/12/21 05:56:59;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.6
date: 2015/12/21 05:52:10;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2015/12/21 05:50:03;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2015/12/21 05:46:10;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/12/21 05:32:51;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/21 05:27:31;  author: root;  state: Exp;  lines: +1 -1
Macro of REQUESTFIFO is redefined which contains a %d which will be its PID.
—————————-
revision 1.1
date: 2015/12/21 04:56:38;  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:
adder has command line arguments which contains File Descriptors of pipe.
adder read request from server for adding 2 objects
adder write result(int) into server.
—————————-
revision 1.4    locked by: root;
date: 2016/01/06 08:52:29;  author: root;  state: Exp;  lines: +1 -1
signal is removed.
—————————-
revision 1.3
date: 2016/01/01 02:07:16;  author: root;  state: Exp;  lines: +2 -1
alarm signal is send to server after it writes result to server
—————————-
revision 1.2
date: 2015/12/21 09:59:14;  author: root;  state: Exp;  lines: +1 -1
print statement decreased.
—————————-
revision 1.1
date: 2015/12/21 04:40:12;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: client1.c,v
Working file: client1.c
head: 1.15
branch:
locks: strict
root: 1.15
access list:
symbolic names:
keyword substitution: kv
total revisions: 15;    selected revisions: 15
description:
It open the requestfifo
Write request for addition using struct request to server
Then, it reads result(int) from server.
Before reading result “resultfifo” is being created by client.
Different clients uses same requestfifo but they have unique resultfifo which is created by client itself.
—————————-
revision 1.15    locked by: root;
date: 2015/12/21 10:05:47;  author: root;  state: Exp;  lines: +5 -5
print staements removed
—————————-
revision 1.14
date: 2015/12/21 06:16:33;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.13
date: 2015/12/21 06:11:20;  author: root;  state: Exp;  lines: +7 -7
name of arr changes to client_fifo
—————————-
revision 1.12
date: 2015/12/21 05:59:17;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.11
date: 2015/12/21 05:56:32;  author: root;  state: Exp;  lines: +3 -3
arr data type changes from char * to string.
—————————-
revision 1.10
date: 2015/12/21 05:52:06;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.9
date: 2015/12/21 05:50:02;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.8
date: 2015/12/21 05:46:08;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.7
date: 2015/12/21 05:41:58;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.6
date: 2015/12/21 05:39:43;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.5
date: 2015/12/21 05:35:20;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.4
date: 2015/12/21 05:34:03;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/12/21 05:32:47;  author: root;  state: Exp;  lines: +1 -0
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/21 05:27:08;  author: root;  state: Exp;  lines: +3 -1
sprintf() is used for creating client address.
—————————-
revision 1.1
date: 2015/12/21 04:42:31;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: client2.c,v
Working file: client2.c
head: 1.3
branch:
locks: strict
root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3;    selected revisions: 3
description:
client2 request for subtraction from the server.
It writes its request from requestfifo.
And it creates the resultfifo.
And it reads result from server through resultfifo.
—————————-
revision 1.3    locked by: root;
date: 2015/12/21 10:06:09;  author: root;  state: Exp;  lines: +4 -4
print staements removed
>
—————————-
revision 1.2
date: 2015/12/21 06:36:30;  author: root;  state: Exp;  lines: +7 -4
client_fifo is introduced.
—————————-
revision 1.1
date: 2015/12/21 05:09:19;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: client3.c,v
Working file: client3.c
head: 1.4
branch:
locks: strict
root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4;    selected revisions: 4
description:
This client request for multiplication.
It writes request to server through requestfifo.
It creates resultfifo.
It reads result from server through resultfifo.
—————————-
revision 1.4    locked by: root;
date: 2015/12/21 10:06:20;  author: root;  state: Exp;  lines: +5 -5
print staements removed
—————————-
revision 1.3
date: 2015/12/21 06:37:03;  author: root;  state: Exp;  lines: +7 -4
client_fifo is introduced.
—————————-
revision 1.2
date: 2015/12/21 05:16:34;  author: root;  state: Exp;  lines: +1 -1
Values of objects changed.
—————————-
revision 1.1
date: 2015/12/21 05:14:09;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: client4.c,v
Working file: client4.c
head: 1.3
branch:
locks: strict
root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3;    selected revisions: 3
description:
This client request for modulo (%)
—————————-
revision 1.3    locked by: root;
date: 2015/12/21 10:06:24;  author: root;  state: Exp;  lines: +3 -3
print staements removed
—————————-
revision 1.2
date: 2015/12/21 09:36:57;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/21 08:49:24;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: client5.c,v
Working file: client5.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2;    selected revisions: 2
description:
Client5 request for divide operation.
—————————-
revision 1.2    locked by: root;
date: 2015/12/21 10:06:27;  author: root;  state: Exp;  lines: +5 -5
print staements removed
—————————-
revision 1.1
date: 2015/12/21 09:05:44;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: divide.c,v
Working file: divide.c
head: 1.4
branch:
locks: strict
root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4;    selected revisions: 4
description:
It is used for accepting request for divide i.e when operation=’/’
—————————-
revision 1.4    locked by: root;
date: 2016/01/06 08:52:44;  author: root;  state: Exp;  lines: +1 -1
signal is removed.
—————————-
revision 1.3
date: 2016/01/01 02:08:20;  author: root;  state: Exp;  lines: +3 -2
alarm signal is send to server after it writes result to server
—————————-
revision 1.2
date: 2015/12/21 09:59:36;  author: root;  state: Exp;  lines: +1 -1
print statement decreased.
—————————-
revision 1.1
date: 2015/12/21 09:06:02;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: modulo.c,v
Working file: modulo.c
head: 1.5
branch:
locks: strict
root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5;    selected revisions: 5
description:
This gives result of modulo
—————————-
revision 1.5    locked by: root;
date: 2016/01/06 08:52:52;  author: root;  state: Exp;  lines: +1 -1
signal is removed.
—————————-
revision 1.4
date: 2016/01/01 02:08:33;  author: root;  state: Exp;  lines: +3 -2
alarm signal is send to server after it writes result to server
..
—————————-
revision 1.3
date: 2015/12/21 09:59:41;  author: root;  state: Exp;  lines: +1 -1
print statement decreased.
—————————-
revision 1.2
date: 2015/12/21 08:53:15;  author: root;  state: Exp;  lines: +1 -1
print statement changes.
—————————-
revision 1.1
date: 2015/12/21 08:49:48;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: multiplier.c,v
Working file: multiplier.c
head: 1.4
branch:
locks: strict
root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4;    selected revisions: 4
description:
It read request from server from pipe for multiplication purpose.
It prosses the request and get the result.
result is written to server through pipe.
—————————-
revision 1.4    locked by: root;
date: 2016/01/06 08:52:59;  author: root;  state: Exp;  lines: +1 -1
signal is received.
—————————-
revision 1.3
date: 2016/01/01 02:08:39;  author: root;  state: Exp;  lines: +2 -1
alarm signal is send to server after it writes result to server
—————————-
revision 1.2
date: 2015/12/21 09:59:45;  author: root;  state: Exp;  lines: +1 -1
print statement decreased.
—————————-
revision 1.1
date: 2015/12/21 04:46:24;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: server.c,v
Working file: server.c
head: 1.46
branch:
locks: strict
root: 1.46
access list:
symbolic names:
keyword substitution: kv
total revisions: 46;    selected revisions: 46
description:
Ii can handle only 1 client in this revision.
requestfifo is created.
It reads the request from client.
A pipe is created by server.
This pipe is used to send request to adder.
Then, it read result(int) from adder.
through pipe.
It writes result to the client using resultfifo (of respectice client).
—————————-
revision 1.46    locked by: root;
date: 2016/01/06 10:22:21;  author: root;  state: Exp;  lines: +0 -10
*** empty log message ***
—————————-
revision 1.45
date: 2016/01/06 09:13:03;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.44
date: 2016/01/06 08:53:09;  author: root;  state: Exp;  lines: +3 -3
signal is removed.
wait() is used instead of pause().
—————————-
revision 1.43
date: 2016/01/04 11:04:33;  author: root;  state: Exp;  lines: +1 -0
rfd and wfd are printed.
—————————-
revision 1.42
date: 2016/01/04 11:00:31;  author: root;  state: Exp;  lines: +2 -0
The pipe fd’s are closed.
—————————-
revision 1.41
date: 2016/01/04 10:41:42;  author: root;  state: Exp;  lines: +1 -0
Print statement added to show which no. of cient is accessing th server.
—————————-
revision 1.40
date: 2016/01/04 03:32:19;  author: root;  state: Exp;  lines: +1 -1
No, of clients determination corrected.
—————————-
revision 1.39
date: 2016/01/04 03:11:11;  author: root;  state: Exp;  lines: +1 -0
No.of clients Printed.
—————————-
revision 1.38
date: 2016/01/04 03:05:30;  author: root;  state: Exp;  lines: +4 -4
2nd argument of read or write corrected.
—————————-
revision 1.37
date: 2016/01/04 03:03:31;  author: root;  state: Exp;  lines: +28 -28
array of variables changed to simple variables
—————————-
revision 1.36
date: 2016/01/04 02:54:37;  author: root;  state: Exp;  lines: +2 -3
*** empty log message ***
—————————-
revision 1.35
date: 2016/01/04 02:52:44;  author: root;  state: Exp;  lines: +2 -1
*** empty log message ***
—————————-
revision 1.34
date: 2016/01/04 02:46:38;  author: root;  state: Exp;  lines: +2 -6
close() command is removed.
—————————-
revision 1.33
date: 2016/01/04 02:43:10;  author: root;  state: Exp;  lines: +2 -1
*** empty log message ***
—————————-
revision 1.32
date: 2016/01/04 02:37:50;  author: root;  state: Exp;  lines: +2 -3
*** empty log message ***
—————————-
revision 1.31
date: 2016/01/04 02:36:11;  author: root;  state: Exp;  lines: +6 -7
while is used instead of for loop.
—————————-
revision 1.30
date: 2016/01/01 02:12:09;  author: root;  state: Exp;  lines: +1 -1
ce
—————————-
revision 1.29
date: 2016/01/01 02:08:42;  author: root;  state: Exp;  lines: +12 -1
pause is used instead of wait() before reading result from pipe through calculating client.
—————————-
revision 1.28
date: 2015/12/21 10:10:28;  author: root;  state: Exp;  lines: +2 -2
print removed.
—————————-
revision 1.27
date: 2015/12/21 10:06:30;  author: root;  state: Exp;  lines: +5 -5
print staements removed
—————————-
revision 1.26
date: 2015/12/21 09:56:25;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.25
date: 2015/12/21 09:50:03;  author: root;  state: Exp;  lines: +2 -2
Print statement corrected.
—————————-
revision 1.24
date: 2015/12/21 09:41:27;  author: root;  state: Exp;  lines: +1 -0
sleep is replaced by wait()
—————————-
revision 1.23
date: 2015/12/21 09:38:51;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.22
date: 2015/12/21 09:36:59;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.21
date: 2015/12/21 09:07:13;  author: root;  state: Exp;  lines: +4 -0
divide is also included in operations.
—————————-
revision 1.20
date: 2015/12/21 08:50:02;  author: root;  state: Exp;  lines: +4 -0
modulo choice is added to switch(req.opr)
—————————-
revision 1.19
date: 2015/12/21 08:26:26;  author: root;  state: Exp;  lines: +1 -1
loop is executing one more time.
—————————-
revision 1.18
date: 2015/12/21 08:21:43;  author: root;  state: Exp;  lines: +1 -1
ce
—————————-
revision 1.17
date: 2015/12/21 08:19:40;  author: root;  state: Exp;  lines: +3 -3
Print statement before writion for calculation added.
—————————-
revision 1.16
date: 2015/12/21 08:11:55;  author: root;  state: Exp;  lines: +1 -1
ce
—————————-
revision 1.15
date: 2015/12/21 08:10:57;  author: root;  state: Exp;  lines: +6 -6
Changes in addresses in read and write statements.
—————————-
revision 1.14
date: 2015/12/21 08:00:30;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.13
date: 2015/12/21 07:47:37;  author: root;  state: Exp;  lines: +2 -2
&(req+i) changes to (&req+i)
—————————-
revision 1.12
date: 2015/12/21 07:45:49;  author: root;  state: Exp;  lines: +16 -9
req change to req[i] for client i.
—————————-
revision 1.11
date: 2015/12/21 07:31:19;  author: root;  state: Exp;  lines: +14 -10
fd[i] changes to fd
—————————-
revision 1.10
date: 2015/12/21 07:12:56;  author: root;  state: Exp;  lines: +5 -5
res changes to res[MAX_SIZE]
—————————-
revision 1.9
date: 2015/12/21 07:07:57;  author: root;  state: Exp;  lines: +35 -35
fd become fd[MAX_CLIENT]
rfd[4] and wfd[4] becomes rfd[MAX_CLIENT][4] and wfd[MAX_CLIENT][4].
count changes to count[MAX_CLIENT]
—————————-
revision 1.8
date: 2015/12/21 06:58:49;  author: root;  state: Exp;  lines: +2 -2
sleep removed.
—————————-
revision 1.7
date: 2015/12/21 06:55:16;  author: root;  state: Exp;  lines: +2 -0
*** empty log message ***
—————————-
revision 1.6
date: 2015/12/21 06:18:23;  author: root;  state: Exp;  lines: +1 -1
client_fifo data type changes from char to string.
—————————-
revision 1.5
date: 2015/12/21 06:16:43;  author: root;  state: Exp;  lines: +1 -1
sprintf() is used for getting RESULTFIFO name.
—————————-
revision 1.4
date: 2015/12/21 06:11:34;  author: root;  state: Exp;  lines: +3 -1
client_fifo is used for RESULT_FIFO.
—————————-
revision 1.3
date: 2015/12/21 05:06:34;  author: root;  state: Exp;  lines: +3 -3
+,-,* are replaced by ‘+’,’-’,’*’ respectively in switch case of operation.
—————————-
revision 1.2
date: 2015/12/21 05:04:10;  author: root;  state: Exp;  lines: +13 -3
execl() for subtractor and multiplier are also included along with addition in a switch case which depend on operand of the request by the client.
—————————-
revision 1.1
date: 2015/12/21 04:47:51;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: subtractor.c,v
Working file: subtractor.c
head: 1.11
branch:
locks: strict
root: 1.11
access list:
symbolic names:
keyword substitution: kv
total revisions: 11;    selected revisions: 11
description:
It reads request from server through pipe for subtraction purpose.
It processes the request and get the result.
result is send to server by the pipe.
—————————-
revision 1.11    locked by: root;
date: 2016/01/06 08:53:35;  author: root;  state: Exp;  lines: +2 -2
kill() is removed.
signal is not used.
—————————-
revision 1.10
date: 2016/01/04 10:56:49;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.9
date: 2016/01/04 10:56:16;  author: root;  state: Exp;  lines: +4 -3
*** empty log message ***
—————————-
revision 1.8
date: 2016/01/04 10:52:54;  author: root;  state: Exp;  lines: +2 -1
*** empty log message ***
—————————-
revision 1.7
date: 2016/01/04 10:51:58;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.6
date: 2016/01/04 10:51:23;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2016/01/04 10:50:54;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2016/01/04 10:47:34;  author: root;  state: Exp;  lines: +1 -1
exit function is used instead of return.
—————————-
revision 1.3
date: 2016/01/01 02:09:33;  author: root;  state: Exp;  lines: +3 -2
alarm signal is send to server after it writes result to server
—————————-
revision 1.2
date: 2015/12/21 09:59:50;  author: root;  state: Exp;  lines: +1 -1
print statement decreased.
—————————-
revision 1.1
date: 2015/12/21 04:52:26;  author: root;  state: Exp;
Initial revision
=============================================================================

Posted in Project 03: Client Server Communication using Linux and IPC | Tagged , , , , , , | Leave a comment

Client Server communication in IPC using FIFO for 3 clients

Logfile of Project

——————————–

——————————–
RCS file: header.h,v
Working file: header.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 includes basic headerfiles for FIFOs.
It contains stdio.h, fcntl.h, unistd.h, sys/types.h, sys/stat.h
It contains #ifndef HEADERS to avoid multiple declaration of heders by differnt files.
—————————-
revision 1.1    locked by: root;
date: 2015/12/21 04:54:01;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: request.h,v
Working file: request.h
head: 1.7
branch:
locks: strict
root: 1.7
access list:
symbolic names:
keyword substitution: kv
total revisions: 7;    selected revisions: 7
description:
It contains struct request
It is format of basic client request.
It contains client PID, 2 objects,operation to be performed.
—————————-
revision 1.7    locked by: root;
date: 2015/12/21 05:56:59;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.6
date: 2015/12/21 05:52:10;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2015/12/21 05:50:03;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2015/12/21 05:46:10;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/12/21 05:32:51;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/21 05:27:31;  author: root;  state: Exp;  lines: +1 -1
Macro of REQUESTFIFO is redefined which contains a %d which will be its PID.
—————————-
revision 1.1
date: 2015/12/21 04:56:38;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: adder.c,v
Working file: adder.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
adder has command line arguments which contains File Descriptors of pipe.
adder read request from server for adding 2 objects
adder write result(int) into server.
—————————-
revision 1.1    locked by: root;
date: 2015/12/21 04:40:12;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: client1.c,v
Working file: client1.c
head: 1.14
branch:
locks: strict
root: 1.14
access list:
symbolic names:
keyword substitution: kv
total revisions: 14;    selected revisions: 14
description:
It open the requestfifo
Write request for addition using struct request to server
Then, it reads result(int) from server.
Before reading result “resultfifo” is being created by client.
Different clients uses same requestfifo but they have unique resultfifo which is created by client itself.
—————————-
revision 1.14    locked by: root;
date: 2015/12/21 06:16:33;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.13
date: 2015/12/21 06:11:20;  author: root;  state: Exp;  lines: +7 -7
name of arr changes to client_fifo
—————————-
revision 1.12
date: 2015/12/21 05:59:17;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.11
date: 2015/12/21 05:56:32;  author: root;  state: Exp;  lines: +3 -3
arr data type changes from char * to string.
—————————-
revision 1.10
date: 2015/12/21 05:52:06;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.9
date: 2015/12/21 05:50:02;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.8
date: 2015/12/21 05:46:08;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.7
date: 2015/12/21 05:41:58;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.6
date: 2015/12/21 05:39:43;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.5
date: 2015/12/21 05:35:20;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.4
date: 2015/12/21 05:34:03;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/12/21 05:32:47;  author: root;  state: Exp;  lines: +1 -0
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/21 05:27:08;  author: root;  state: Exp;  lines: +3 -1
sprintf() is used for creating client address.
—————————-
revision 1.1
date: 2015/12/21 04:42:31;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: 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:
client2 request for subtraction from the server.
It writes its request from requestfifo.
And it creates the resultfifo.
And it reads result from server through resultfifo.
—————————-
revision 1.2    locked by: root;
date: 2015/12/21 06:36:30;  author: root;  state: Exp;  lines: +7 -4
client_fifo is introduced.
—————————-
revision 1.1
date: 2015/12/21 05:09:19;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: client3.c,v
Working file: client3.c
head: 1.3
branch:
locks: strict
root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3;    selected revisions: 3
description:
This client request for multiplication.
It writes request to server through requestfifo.
It creates resultfifo.
It reads result from server through resultfifo.
—————————-
revision 1.3    locked by: root;
date: 2015/12/21 06:37:03;  author: root;  state: Exp;  lines: +7 -4
client_fifo is introduced.
—————————-
revision 1.2
date: 2015/12/21 05:16:34;  author: root;  state: Exp;  lines: +1 -1
Values of objects changed.
—————————-
revision 1.1
date: 2015/12/21 05:14:09;  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:
It read request from server from pipe for multiplication purpose.
It prosses the request and get the result.
result is written to server through pipe.
—————————-
revision 1.1    locked by: root;
date: 2015/12/21 04:46:24;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: server.c,v
Working file: server.c
head: 1.6
branch:
locks: strict
root: 1.6
access list:
symbolic names:
keyword substitution: kv
total revisions: 6;    selected revisions: 6
description:
Ii can handle only 1 client in this revision.
requestfifo is created.
It reads the request from client.
A pipe is created by server.
This pipe is used to send request to adder.
Then, it read result(int) from adder.
through pipe.
It writes result to the client using resultfifo (of respectice client).
—————————-
revision 1.6    locked by: root;
date: 2015/12/21 06:18:23;  author: root;  state: Exp;  lines: +1 -1
client_fifo data type changes from char to string.
—————————-
revision 1.5
date: 2015/12/21 06:16:43;  author: root;  state: Exp;  lines: +1 -1
sprintf() is used for getting RESULTFIFO name.
—————————-
revision 1.4
date: 2015/12/21 06:11:34;  author: root;  state: Exp;  lines: +3 -1
client_fifo is used for RESULT_FIFO.
—————————-
revision 1.3
date: 2015/12/21 05:06:34;  author: root;  state: Exp;  lines: +3 -3
+,-,* are replaced by ‘+’,’-’,’*’ respectively in switch case of operation.
—————————-
revision 1.2
date: 2015/12/21 05:04:10;  author: root;  state: Exp;  lines: +13 -3
execl() for subtractor and multiplier are also included along with addition in a switch case which depend on operand of the request by the client.
—————————-
revision 1.1
date: 2015/12/21 04:47:51;  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:
It reads request from server through pipe for subtraction purpose.
It processes the request and get the result.
result is send to server by the pipe.
—————————-
revision 1.1    locked by: root;
date: 2015/12/21 04:52:26;  author: root;  state: Exp;
Initial revision
=============================================================================

Posted in Project 03: Client Server Communication using Linux and IPC | Tagged , , , , , , , , , | Leave a comment

Client Server Communication using FIFO for single server and a client when result FIFO created by client

Logfile of Project

————————————

————————————
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:
It contains basic header files for communication using FIFO.
—————————-
revision 1.2    locked by: root;
date: 2015/12/20 23:20:47;  author: root;  state: Exp;  lines: +2 -2
It is prevented from multiple declarations.
—————————-
revision 1.1
date: 2015/12/20 23:18:12;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: request.h,v
Working file: request.h
head: 1.5
branch:
locks: strict
root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5;    selected revisions: 5
description:
This is format of client request.
it contains client pid, operator and 2 objects(int).
—————————-
revision 1.5    locked by: root;
date: 2015/12/21 04:27:36;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.4
date: 2015/12/21 04:26:40;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.3
date: 2015/12/21 03:53:15;  author: root;  state: Exp;  lines: +3 -0
macro REQUESTFIFO and RESULTFIFO are defined.
—————————-
revision 1.2
date: 2015/12/21 01:32:02;  author: root;  state: Exp;  lines: +1 -1
name of cpid changes to pid.
—————————-
revision 1.1
date: 2015/12/20 23:18:41;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: adder.c,v
Working file: adder.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 a function for adding.
It reads request from server as struct request and write result to server in int format through pipe.
—————————-
revision 1.1    locked by: root;
date: 2015/12/21 02:02:20;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: client1.c,v
Working file: client1.c
head: 1.22
branch:
locks: strict
root: 1.22
access list:
symbolic names:
keyword substitution: kv
total revisions: 22;    selected revisions: 22
description:
client open the requestfifo.
client writes some text into i.
—————————-
revision 1.22    locked by: root;
date: 2015/12/21 04:29:45;  author: root;  state: Exp;  lines: +4 -4
*** empty log message ***
—————————-
revision 1.21
date: 2015/12/21 04:09:45;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.20
date: 2015/12/21 04:08:24;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.19
date: 2015/12/21 04:07:12;  author: root;  state: Exp;  lines: +2 -2
ce
—————————-
revision 1.18
date: 2015/12/21 03:57:01;  author: root;  state: Exp;  lines: +4 -4
*** empty log message ***
—————————-
revision 1.17
date: 2015/12/21 03:52:08;  author: root;  state: Exp;  lines: +6 -6
requestfifo is replaced by REQUESTFIFO
resultfifo is replaced by RESULTFIFO
—————————-
revision 1.16
date: 2015/12/21 03:17:55;  author: root;  state: Exp;  lines: +10 -1
Now, client creates resultfifo.
resultfifo is open in mode 666.
—————————-
revision 1.15
date: 2015/12/21 02:52:59;  author: root;  state: Exp;  lines: +1 -1
sleep time increse from 4 to 8.
—————————-
revision 1.14
date: 2015/12/21 02:49:55;  author: root;  state: Exp;  lines: +2 -2
name of requestfifo corrected to resultfifo.
—————————-
revision 1.13
date: 2015/12/21 02:42:57;  author: root;  state: Exp;  lines: +1 -1
sleep time reduced to 4 from 10.
—————————-
revision 1.12
date: 2015/12/21 02:34:15;  author: root;  state: Exp;  lines: +2 -1
sleep(10) added.
—————————-
revision 1.11
date: 2015/12/21 02:24:59;  author: root;  state: Exp;  lines: +31 -6
Client reads result from server.
—————————-
revision 1.10
date: 2015/12/21 01:33:51;  author: root;  state: Exp;  lines: +1 -1
buff is removed.
—————————-
revision 1.9
date: 2015/12/21 01:31:01;  author: root;  state: Exp;  lines: +13 -4
Server reading request.
—————————-
revision 1.8
date: 2015/12/21 01:12:53;  author: root;  state: Exp;  lines: +2 -1
*** empty log message ***
—————————-
revision 1.7
date: 2015/12/21 00:03:08;  author: root;  state: Exp;  lines: +1 -0
*** empty log message ***
—————————-
revision 1.6
date: 2015/12/21 00:00:49;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.5
date: 2015/12/20 23:59:50;  author: root;  state: Exp;  lines: +2 -1
*** empty log message ***
—————————-
revision 1.4
date: 2015/12/20 23:56:41;  author: root;  state: Exp;  lines: +2 -3
A character is written to FIF
O.
—————————-
revision 1.3
date: 2015/12/20 23:45:04;  author: root;  state: Exp;  lines: +2 -0
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/20 23:39:19;  author: root;  state: Exp;  lines: +2 -2
some print statements added.
—————————-
revision 1.1
date: 2015/12/20 23:11:52;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: server.c,v
Working file: server.c
head: 1.37
branch:
locks: strict
root: 1.37
access list:
symbolic names:
keyword substitution: kv
total revisions: 37;    selected revisions: 37
description:
Server creates requestfifo using mkfifo() function.
—————————-
revision 1.37    locked by: root;
date: 2015/12/21 04:29:53;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.36
date: 2015/12/21 04:24:47;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.35
date: 2015/12/21 04:09:47;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.34
date: 2015/12/21 04:08:25;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.33
date: 2015/12/21 04:07:16;  author: root;  state: Exp;  lines: +2 -2
ce
—————————-
revision 1.32
date: 2015/12/21 03:57:02;  author: root;  state: Exp;  lines: +6 -6
*** empty log message ***
—————————-
revision 1.31
date: 2015/12/21 03:52:55;  author: root;  state: Exp;  lines: +11 -11
requestfifo is replaced by REQUESTFIFO
>> resultfifo is replaced by RESULTFIFO
>> .
—————————-
revision 1.30
date: 2015/12/21 03:18:28;  author: root;  state: Exp;  lines: +4 -0
server write result into resultfifo.
server do not create resultfifo from now.
—————————-
revision 1.29
date: 2015/12/21 02:55:05;  author: root;  state: Exp;  lines: +1 -1
printing changes.
—————————-
revision 1.28
date: 2015/12/21 02:41:37;  author: root;  state: Exp;  lines: +3 -0
adding print statements.
—————————-
revision 1.27
date: 2015/12/21 02:37:45;  author: root;  state: Exp;  lines: +1 -1
ce
—————————-
revision 1.26
date: 2015/12/21 02:34:32;  author: root;  state: Exp;  lines: +1 -1
sleep(1) added.
—————————-
revision 1.25
date: 2015/12/21 02:28:43;  author: root;  state: Exp;  lines: +1 -1
Problem in passing argument to write.
It is an address.
—————————-
revision 1.24
date: 2015/12/21 02:28:08;  author: root;  state: Exp;  lines: +2 -2
ce
—————————-
revision 1.23
date: 2015/12/21 02:27:11;  author: root;  state: Exp;  lines: +1 -1
ce
—————————-
revision 1.22
date: 2015/12/21 02:25:30;  author: root;  state: Exp;  lines: +4 -3
Server writes result to client.
—————————-
revision 1.21
date: 2015/12/21 02:12:44;  author: root;  state: Exp;  lines: +1 -1
sleep(1) is added between writing request and reading result from adder.
—————————-
revision 1.20
date: 2015/12/21 02:11:10;  author: root;  state: Exp;  lines: +1 -1
data type of char rfd,wfd changes to char rfd[4],wfd[4]
—————————-
revision 1.19
date: 2015/12/21 02:09:06;  author: root;  state: Exp;  lines: +1 -1
rfd and wfd of pipe which are to be send to adder using execl .
Ther data type corrected from int to char.
—————————-
revision 1.18
date: 2015/12/21 02:07:13;  author: root;  state: Exp;  lines: +1 -1
data type of arr is corrected.
arr is array of pipe.
It changes from char to int.
—————————-
revision 1.17
date: 2015/12/21 02:03:54;  author: root;  state: Exp;  lines: +62 -11
Server writes request to adder() for calculation.
It creates a pipe using pipe() and execl()
It reads result from adder() after calculation.
—————————-
revision 1.16
date: 2015/12/21 01:31:12;  author: root;  state: Exp;  lines: +5 -3
Server reading request and client writing request.
—————————-
revision 1.15
date: 2015/12/21 01:14:24;  author: root;  state: Exp;  lines: +1 -1
wrfifo open in read mode.
—————————-
revision 1.14
date: 2015/12/21 01:12:55;  author: root;  state: Exp;  lines: +1 -0
*** empty log message ***
—————————-
revision 1.13
date: 2015/12/21 01:07:00;  author: root;  state: Exp;  lines: +2 -2
open() command given to requestfifo()
—————————-
revision 1.12
date: 2015/12/21 01:01:40;  author: root;  state: Exp;  lines: +1 -1
sleep changes from 2 to 10.
—————————-
revision 1.11
date: 2015/12/21 00:04:48;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.10
date: 2015/12/21 00:03:10;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.9
date: 2015/12/20 23:57:01;  author: root;  state: Exp;  lines: +3 -3
A character is read from fifo.
—————————-
revision 1.8
date: 2015/12/20 23:53:41;  author: root;  state: Exp;  lines: +1 -1
mode changes from 666 to 777.
—————————-
revision 1.7
date: 2015/12/20 23:46:29;  author: root;  state: Exp;  lines: +1 -1
mode of requestfifo is corrected.
—————————-
revision 1.6
date: 2015/12/20 23:41:16;  author: root;  state: Exp;  lines: +1 -0
sleep(2) is given before read.
—————————-
revision 1.5
date: 2015/12/20 23:31:17;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2015/12/20 23:26:07;  author: root;  state: Exp;  lines: +2 -2
Spelling mistake corrected
acces changes to access()
—————————-
revision 1.3
date: 2015/12/20 23:23:11;  author: root;  state: Exp;  lines: +1 -1
; mistake.
—————————-
revision 1.2
date: 2015/12/20 23:22:31;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/20 23:12:38;  author: root;  state: Exp;
Initial revision
=============================================================================

Posted in Project 03: Client Server Communication using Linux and IPC | Tagged , , , , , , , , | Leave a comment

IPC using FIFO for single server and a client when both FIFO(result and request) created by server

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:
It contains basic header files for communication using FIFO.
—————————-
revision 1.2    locked by: root;
date: 2015/12/20 23:20:47;  author: root;  state: Exp;  lines: +2 -2
It is prevented from multiple declarations.
—————————-
revision 1.1
date: 2015/12/20 23:18:12;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: request.h,v
Working file: request.h
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2;    selected revisions: 2
description:
This is format of client request.
it contains client pid, operator and 2 objects(int).
—————————-
revision 1.2    locked by: root;
date: 2015/12/21 01:32:02;  author: root;  state: Exp;  lines: +1 -1
name of cpid changes to pid.
—————————-
revision 1.1
date: 2015/12/20 23:18:41;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: adder.c,v
Working file: adder.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 a function for adding.
It reads request from server as struct request and write result to server in int format through pipe.
—————————-
revision 1.1    locked by: root;
date: 2015/12/21 02:02:20;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: client1.c,v
Working file: client1.c
head: 1.15
branch:
locks: strict
root: 1.15
access list:
symbolic names:
keyword substitution: kv
total revisions: 15;    selected revisions: 15
description:
client open the requestfifo.
client writes some text into i.
—————————-
revision 1.15    locked by: root;
date: 2015/12/21 02:52:59;  author: root;  state: Exp;  lines: +1 -1
sleep time increse from 4 to 8.
—————————-
revision 1.14
date: 2015/12/21 02:49:55;  author: root;  state: Exp;  lines: +2 -2
name of requestfifo corrected to resultfifo.
—————————-
revision 1.13
date: 2015/12/21 02:42:57;  author: root;  state: Exp;  lines: +1 -1
sleep time reduced to 4 from 10.
—————————-
revision 1.12
date: 2015/12/21 02:34:15;  author: root;  state: Exp;  lines: +2 -1
sleep(10) added.
—————————-
revision 1.11
date: 2015/12/21 02:24:59;  author: root;  state: Exp;  lines: +31 -6
Client reads result from server.
—————————-
revision 1.10
date: 2015/12/21 01:33:51;  author: root;  state: Exp;  lines: +1 -1
buff is removed.
—————————-
revision 1.9
date: 2015/12/21 01:31:01;  author: root;  state: Exp;  lines: +13 -4
Server reading request.
—————————-
revision 1.8
date: 2015/12/21 01:12:53;  author: root;  state: Exp;  lines: +2 -1
*** empty log message ***
—————————-
revision 1.7
date: 2015/12/21 00:03:08;  author: root;  state: Exp;  lines: +1 -0
*** empty log message ***
—————————-
revision 1.6
date: 2015/12/21 00:00:49;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.5
date: 2015/12/20 23:59:50;  author: root;  state: Exp;  lines: +2 -1
*** empty log message ***
—————————-
revision 1.4
date: 2015/12/20 23:56:41;  author: root;  state: Exp;  lines: +2 -3
A character is written to FIF
O.
—————————-
revision 1.3
date: 2015/12/20 23:45:04;  author: root;  state: Exp;  lines: +2 -0
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/20 23:39:19;  author: root;  state: Exp;  lines: +2 -2
some print statements added.
—————————-
revision 1.1
date: 2015/12/20 23:11:52;  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 creates requestfifo using mkfifo() function.
—————————-
revision 1.29    locked by: root;
date: 2015/12/21 02:55:05;  author: root;  state: Exp;  lines: +1 -1
printing changes.
—————————-
revision 1.28
date: 2015/12/21 02:41:37;  author: root;  state: Exp;  lines: +3 -0
adding print statements.
—————————-
revision 1.27
date: 2015/12/21 02:37:45;  author: root;  state: Exp;  lines: +1 -1
ce
—————————-
revision 1.26
date: 2015/12/21 02:34:32;  author: root;  state: Exp;  lines: +1 -1
sleep(1) added.
—————————-
revision 1.25
date: 2015/12/21 02:28:43;  author: root;  state: Exp;  lines: +1 -1
Problem in passing argument to write.
It is an address.
—————————-
revision 1.24
date: 2015/12/21 02:28:08;  author: root;  state: Exp;  lines: +2 -2
ce
—————————-
revision 1.23
date: 2015/12/21 02:27:11;  author: root;  state: Exp;  lines: +1 -1
ce
—————————-
revision 1.22
date: 2015/12/21 02:25:30;  author: root;  state: Exp;  lines: +4 -3
Server writes result to client.
—————————-
revision 1.21
date: 2015/12/21 02:12:44;  author: root;  state: Exp;  lines: +1 -1
sleep(1) is added between writing request and reading result from adder.
—————————-
revision 1.20
date: 2015/12/21 02:11:10;  author: root;  state: Exp;  lines: +1 -1
data type of char rfd,wfd changes to char rfd[4],wfd[4]
—————————-
revision 1.19
date: 2015/12/21 02:09:06;  author: root;  state: Exp;  lines: +1 -1
rfd and wfd of pipe which are to be send to adder using execl .
Ther data type corrected from int to char.
—————————-
revision 1.18
date: 2015/12/21 02:07:13;  author: root;  state: Exp;  lines: +1 -1
data type of arr is corrected.
arr is array of pipe.
It changes from char to int.
—————————-
revision 1.17
date: 2015/12/21 02:03:54;  author: root;  state: Exp;  lines: +62 -11
Server writes request to adder() for calculation.
It creates a pipe using pipe() and execl()
It reads result from adder() after calculation.
—————————-
revision 1.16
date: 2015/12/21 01:31:12;  author: root;  state: Exp;  lines: +5 -3
Server reading request and client writing request.
—————————-
revision 1.15
date: 2015/12/21 01:14:24;  author: root;  state: Exp;  lines: +1 -1
wrfifo open in read mode.
—————————-
revision 1.14
date: 2015/12/21 01:12:55;  author: root;  state: Exp;  lines: +1 -0
*** empty log message ***
—————————-
revision 1.13
date: 2015/12/21 01:07:00;  author: root;  state: Exp;  lines: +2 -2
open() command given to requestfifo()
—————————-
revision 1.12
date: 2015/12/21 01:01:40;  author: root;  state: Exp;  lines: +1 -1
sleep changes from 2 to 10.
—————————-
revision 1.11
date: 2015/12/21 00:04:48;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.10
date: 2015/12/21 00:03:10;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.9
date: 2015/12/20 23:57:01;  author: root;  state: Exp;  lines: +3 -3
A character is read from fifo.
—————————-
revision 1.8
date: 2015/12/20 23:53:41;  author: root;  state: Exp;  lines: +1 -1
mode changes from 666 to 777.
—————————-
revision 1.7
date: 2015/12/20 23:46:29;  author: root;  state: Exp;  lines: +1 -1
mode of requestfifo is corrected.
—————————-
revision 1.6
date: 2015/12/20 23:41:16;  author: root;  state: Exp;  lines: +1 -0
sleep(2) is given before read.
—————————-
revision 1.5
date: 2015/12/20 23:31:17;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2015/12/20 23:26:07;  author: root;  state: Exp;  lines: +2 -2
Spelling mistake corrected
acces changes to access()
—————————-
revision 1.3
date: 2015/12/20 23:23:11;  author: root;  state: Exp;  lines: +1 -1
; mistake.
—————————-
revision 1.2
date: 2015/12/20 23:22:31;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/20 23:12:38;  author: root;  state: Exp;
Initial revision
=============================================================================

Posted in Project 03: Client Server Communication using Linux and IPC | Tagged , , , , , | Leave a comment

Create A new Release and Branch in RCS

RCS is a Revision Control System. It manages changes in text documents, automating the storage, retrieval, logging, and logging of file revisions.

RCS Tree with A branch and Two releases

 

 

 

 

In the  image there is a RCS -Tree which have  following parts:

One Branch : 1.3.1.1  and this branch is originated from 1.3

Two releases : 1.x.x.x and 2.x

##########- STEPS FOR BRANCHING IN THE RCS TREE -#############

–>>    In already existing rcs tree, check the revisions by
using ‘rlog filename.c,v‘ .

–>>    Chose a revision to branch , and check-out its editable
             version.
i.e,
co -l1.3 filename.c,v

–>>    Now make changes into the file and check it in the tree
with  the particular branch Number,
i.e,
ci -r1.3.1 filename.c

–>>    Hence it will create first revision of branch 1.3.1
i.e,
version- 1.3.1.1    (1st Rev. of branch 1.3.1)

–>>    You also can create New Release for your Project, simply
by using Release No.
i.e,
ci -r2 filename.c

–>>    Hence it will create Second revision of RCS-Tree
i.e,
version- 2.1    (1st Rev. of Release 2)

–>>    You should refer to the above image while reading this for better
           understanding.

######################################################

 

Posted in Project 1: A Linux Administration based Project, Project Management Tools, Uncategorized | Leave a comment

PID, PPID and NICE value of a process

PCB (Process Control Board)
———————————-
Every Process has its Process Control Board(PCB) which tells about the process.
PCB contains PID,PPID,PC(program counter),nice value of process.
PID :-
* PID is Process Identification of any process.
* It is a number .
* Every Process has unique PID.
* It generally lies between 2 to 32768.
* 1 is reserved for init process (init starts at system boot & it controls other processeses).
* Obtaining PID of any process getpid() command is used-
#include<sys/types.h>
#include<unistd.h>
pid_t getpid(void);
PPID
* PPID is Parent Process Identification.
* It is also a number.
* Every process has unique PPID.
* It contains the PID of Process which creates this process(Parent Process).
* For Orphan Process PPID is generally 1 (init process).
* Obtaining PID of any process getppid() command is used-
#include<sys/types.h>
#include<unistd.h>
pid_t getppid(void);

NICE value
* OS determines Priority of a process using “nice” value.
* Default nice value is 0.
* Higher the “nice” value of a process, lesser will be  its priority.
* “nice” value of a process (say PROCESS_xyz having PID PID_xyz)can be increased using command -
nice PROCESS_xyz & –> Then it will allocate nice value to be +10.
* We can adjust “nice” value using -
renice 8 PID_xyz  –> It will adjust nice valueof PROCESS_xyz to be +8

Posted in Project 03: Client Server Communication using Linux and IPC | Tagged , , | Leave a comment

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
=============================================================================

Posted in Project 03: Client Server Communication using Linux and IPC | Tagged , , , , , | Leave a comment

project 03 implementation of client server at one server and three processing client and three reque sting client

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:
include stdio.h
revision 1.2
date: 2015/12/23 16:28:04; author: root; state: Exp; lines: +1 -0
include unistd.h
RCS file: request.h,v
Working file: request.h
head: 1.11
branch:
locks: strict
root: 1.11
access list:
symbolic names:
keyword substitution: kv
total revisions: 11; selected revisions: 11
description:
it defines the structure of the request.
revision 1.2
date: 2015/12/23 16:43:49; author: root; state: Exp; lines: +1 -1
include ; before int main
it meand include ; in request.h
RCS file: server.c,v
Working file: server.c
head: 1.47
branch:
locks: strict
root: 1.47
access list:
symbolic names:
keyword substitution: kv
total revisions: 47; selected revisions: 47
description:
this is a server program that accept request and process .
return also request specified client.
a child process is started using fork(),which further starts another client process using ececl().revision 1.45
date: 2015/12/28 19:02:41; author: root; state: Exp; lines: +55 -6
this is a server program.
it takes the request form client3 and sends the request tp perform operation to the processinf client.revision 1.40
date: 2015/12/28 17:58:06; author: root; state: Exp; lines: +1 -1
remove se.
—————————-
revision 1.39
date: 2015/12/28 17:55:37; author: root; state: Exp; lines: +1 -1
declare wfdp3.
—————————-
revision 1.38
date: 2015/12/28 17:51:18; author: root; state: Exp; lines: +56 -3
this is a server program it sends the request of client2 to substractor client.
include sleep(1) after read and write operationrevision 1.20
date: 2015/12/24 18:00:21; author: root; state: Exp; lines: +34 -12
this is a server program .
by using pipe all request accepts.
it will not performed itself
it send the request to do another client.
revision 1.6
date: 2015/12/24 08:47:21; author: root; state: Exp; lines: +1 -0
print the data which is available in buff.
—————————-
revision 1.5
date: 2015/12/23 18:19:10; author: root; state: Exp; lines: +6 -2
read character in rfd.
RCS file: client1.c,v
Working file: client1.c
head: 1.28
branch:
locks: strict
root: 1.28
access list:
symbolic names:
keyword substitution: kv
total revisions: 28; selected revisions: 28
description:
this is aclient progran which will genrate arequest.
rfd and wfd file is found throw cmmand line argument usin pipe system call.
creating requuest using struct request.
revision 1.15
date: 2015/12/24 18:00:21; author: root; state: Exp; lines: +8 -12
this is a another client program.
genrate a request for server to perform the operation.
then also display the result of performed operation.
—————————-
revision 1.14
date: 2015/12/23 18:19:10; author: root; state: Exp; lines: +1 -0
write character in wfd.
—————————-
revision 1.13
date: 2015/12/23 17:53:11; author: root; state: Exp; lines: +4 -2
write something on wfd.
revision 1.2
-te: 2015/12/24 18:00:21; author: root; state: Exp; lines: +8 -12
this is a another client program.
genrate a request for server to perform the operation.
then also display the result of performed operation.
—————————-
revision 1.14
date: 2015/12/23 18:19:10; author: root; state: Exp; lines: +1 -0
write character in wfd.
—————————-
revision 1.13
date: 2015/12/23 17:53:11; author: root; state: Exp; lines: +4 -2
write something on wfd.
RCS file: client3.c,v
Working file: client3.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
this is a third client program.
it sends also request to client.
at last accept the result and also print the result.RCS file: adder.c,v
Working file: adder.c
head: 1.14
branch:
locks: strict
root: 1.14
access list:
symbolic names:
keyword substitution: kv
total revisions: 14; selected revisions: 14
description:
the is a client program .
which accept a request and perform the operation of addition.
and write the sum on pipe2.
RCS file: substractor.c,v
Working file: substractor.c
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 a processing client .
it process the request of client2.
which is sended by the server.
RCS file: multiplier.c,v
Working file: multiplier.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
this is another processing client .
it takes the request from server .
and perform the operation.
and also write the resuletto the server.

Posted in Uncategorized | Leave a comment

project 03 implementation of single client and single server using ipc and threads

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:
include stdio.hrevision 1.2
date: 2015/12/23 16:28:04; author: root; state: Exp; lines: +1 -0
include unistd.h
—————————-
revision 1.1
date: 2015/12/23 16:18:23; author: root; state: Exp;
Initial revision
RCS file: request.h,v
Working file: request.h
head: 1.6
branch:
locks: strict
root: 1.6
access list:
symbolic names:
keyword substitution: kv
total revisions: 6; selected revisions: 6
description:
it defines the structure of the request.
—————————-
revision 1.6 locked by: root;
date: 2015/12/24 11:21:15; author: root; state: Exp; lines: +1 -1
type casting.
revision 1.2
date: 2015/12/23 16:43:49; author: root; state: Exp; lines: +1 -1
include ; before int main
it meand include ; in request.h
RCS file: server.c,v
Working file: server.c
head: 1.23
branch:
locks: strict
root: 1.23
access list:
symbolic names:
keyword substitution: kv
total revisions: 23; selected revisions: 23
description:
this is a server program that accept request and process .
return also request specified client.
a child process is started using fork(),which further starts another client process using ececl().
—————————-
revision 1.23 locked by: root;
date: 2015/12/24 16:12:41; author: root; state: Exp; lines: +4 -1
result is calculated and write on wfd of server program.
revision 1.19
date: 2015/12/24 11:20:48; author: root; state: Exp; lines: +3 -8
change the data type of oper.
revision 1.6
date: 2015/12/24 08:47:21; author: root; state: Exp; lines: +1 -0
print the data which is available in buff.

revision 1.5
date: 2015/12/23 18:19:10; author: root; state: Exp; lines: +6 -2
read character in rfd.
revision 1.2
date: 2015/12/23 16:27:27; author: root; state: Exp; lines: +1 -1
here,also changed.RCS file: server.c,v
Working file: server.c
head: 1.23
branch:
locks: strict
root: 1.23
access list:
symbolic names:
keyword substitution: kv
total revisions: 23; selected revisions: 23
description:
this is a server program that accept request and process .
return also request specified client.
a child process is started using fork(),which further starts another client process using ececl().
—————————-
revision 1.23 locked by: root;
date: 2015/12/24 16:12:41; author: root; state: Exp; lines: +4 -1
result is calculated and write on wfd of server program.
revision 1.19
date: 2015/12/24 11:20:48; author: root; state: Exp; lines: +3 -8
change the data type of oper.
revision 1.6
date: 2015/12/24 08:47:21; author: root; state: Exp; lines: +1 -0
print the data which is available in buff.

revision 1.5
date: 2015/12/23 18:19:10; author: root; state: Exp; lines: +6 -2
read character in rfd.
revision 1.2
date: 2015/12/23 16:27:27; author: root; state: Exp; lines: +1 -1
here,also changed.RCS file: server.c,v
Working file: server.c
head: 1.23
branch:
locks: strict
root: 1.23
access list:
symbolic names:
keyword substitution: kv
total revisions: 23; selected revisions: 23
description:
this is a server program that accept request and process .
return also request specified client.
a child process is started using fork(),which further starts another client process using ececl().
—————————-
revision 1.23 locked by: root;
date: 2015/12/24 16:12:41; author: root; state: Exp; lines: +4 -1
result is calculated and write on wfd of server program.
revision 1.19
date: 2015/12/24 11:20:48; author: root; state: Exp; lines: +3 -8
change the data type of oper.
revision 1.6
date: 2015/12/24 08:47:21; author: root; state: Exp; lines: +1 -0
print the data which is available in buff.

revision 1.5
date: 2015/12/23 18:19:10; author: root; state: Exp; lines: +6 -2
read character in rfd.
revision 1.2
date: 2015/12/23 16:27:27; author: root; state: Exp; lines: +1 -1
here,also changedRCS file: server.c,v
Working file: server.c
head: 1.23
branch:
locks: strict
root: 1.23
access list:
symbolic names:
keyword substitution: kv
total revisions: 23; selected revisions: 23
description:
this is a server program that accept request and process .
return also request specified client.
a child process is started using fork(),which further starts another client process using ececl().
—————————-
revision 1.23 locked by: root;
date: 2015/12/24 16:12:41; author: root; state: Exp; lines: +4 -1
result is calculated and write on wfd of server program.
revision 1.19
date: 2015/12/24 11:20:48; author: root; state: Exp; lines: +3 -8
change the data type of oper.
revision 1.6
date: 2015/12/24 08:47:21; author: root; state: Exp; lines: +1 -0
print the data which is available in buff.

revision 1.5
date: 2015/12/23 18:19:10; author: root; state: Exp; lines: +6 -2
read character in rfd.
revision 1.2
date: 2015/12/23 16:27:27; author: root; state: Exp; lines: +1 -1
here,also changed.RCS file: server.c,v
Working file: server.c
head: 1.23
branch:
locks: strict
root: 1.23
access list:
symbolic names:
keyword substitution: kv
total revisions: 23; selected revisions: 23
description:
this is a server program that accept request and process .
return also request specified client.
a child process is started using fork(),which further starts another client process using ececl().
—————————-
revision 1.23 locked by: root;
date: 2015/12/24 16:12:41; author: root; state: Exp; lines: +4 -1
result is calculated and write on wfd of server program.
revision 1.19
date: 2015/12/24 11:20:48; author: root; state: Exp; lines: +3 -8
change the data type of oper.
revision 1.6
date: 2015/12/24 08:47:21; author: root; state: Exp; lines: +1 -0
print the data which is available in buff.

Posted in Uncategorized | Leave a comment

3_RequestingClient_And_3_ProcessingClient-Logfile

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
All the required header files are included here
some important are
stdio.h
unistd.h
stdlib.h
string.h
—————————-
revision 1.1 locked by: root;
date: 2015/12/24 05:26:16; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: request.h,v
Working file: request.h
head: 1.14
branch:
locks: strict
root: 1.14
access list:
symbolic names:
keyword substitution: kv
total revisions: 14; selected revisions: 14
description:
This header file defines the structure of the request.
—————————-
revision 1.6
date: 2015/12/24 11:29:35; author: root; state: Exp; lines: +1 -2
data type of oper changed to char from int
—————————-
revision 1.5
date: 2015/12/24 08:40:46; author: root; state: Exp; lines: +2 -1
changing the order of request
—————————-
revision 1.1
date: 2015/12/23 16:17:49; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: server.c,v
Working file: server.c
head: 1.58
branch:
locks: strict
root: 1.58
access list:
symbolic names:
keyword substitution: kv
total revisions: 58; selected revisions: 58
description:
This is Server program that accepts requests and processes and returns it to the specified client
a child process is started using fork(); which further starts a new process using execl();
—————————-
revision 1.58 locked by: root;
date: 2015/12/28 19:35:46; author: root; state: Exp; lines: +1 -1
mult passed to the client3.c
—————————-
revision 1.57
date: 2015/12/28 19:31:22; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.56
date: 2015/12/28 19:28:55; author: root; state: Exp; lines: +6 -6
syntax errors detected and removed
—————————-
revision 1.55
date: 2015/12/28 19:21:23; author: root; state: Exp; lines: +3 -2
sleep();
—————————-
revision 1.54
date: 2015/12/28 19:10:55; author: root; state: Exp; lines: +1 -0
se.
—————————-
revision 1.53
date: 2015/12/28 19:09:14; author: root; state: Exp; lines: +1 -0
syntax error corrected
—————————-
revision 1.52
date: 2015/12/28 19:03:27; author: root; state: Exp; lines: +64 -3
two new pipe arer created i.e. pipe5 pipe6 for creating another pair of requesting and processing clients
capturing request from cklient3 and getting processed from the processing client i.e multiply.c
—————————-
revision 1.51
date: 2015/12/28 18:04:05; author: root; state: Exp; lines: +1 -1
syntax error corrected
—————————-
revision 1.50
date: 2015/12/28 18:03:14; author: root; state: Exp; lines: +1 -1
arr3[2] declared
—————————-
revision 1.49
date: 2015/12/28 18:02:13; author: root; state: Exp; lines: +2 -2
diff and wfdp4 declared
—————————-
revision 1.48
date: 2015/12/28 17:56:31; author: root; state: Exp; lines: +67 -7
pipe system call system invloked for two times for creating another requesting client and processsing client
accordingly new variables arre declared
testing if program is successful or not…
—————————-
revision 1.47
date: 2015/12/26 10:45:49; author: root; state: Exp; lines: +1 -1
sleep(1) is applied at some point in the program
—————————-
revision 1.46
date: 2015/12/26 10:38:20; author: root; state: Exp; lines: +8 -8
This is a server process that recieves the request from the requesting client sends it to the processing client and provides the result submitted by the processing client to the requesting client
—————————-
revision 1.30
date: 2015/12/24 18:00:55; author: root; state: Exp; lines: +31 -9
server program accepts request from client1 and gets it processed by client2 i.e adder.c
and agan sends it to the requesting client
—————————-
revision 1.29
date: 2015/12/24 11:42:57; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.28
date: 2015/12/24 11:40:45; author: root; state: Exp; lines: +4 -4
*** empty log message ***
—————————-
revision 1.27
date: 2015/12/24 11:28:33; author: root; state: Exp; lines: +5 -21
request written by client1 is read and printed by the server.
—————————-
revision 1.26
date: 2015/12/24 09:19:18; author: root; state: Exp; lines: +13 -11
checking if the request is recieved properly or not
—————————-
revision 1.19
date: 2015/12/24 08:54:41; author: root; state: Exp; lines: +10 -4
fetching the data from request
—————————-
revision 1.13
date: 2015/12/24 07:57:07; author: root; state: Exp; lines: +2 -2
trying fetch the data recieved
—————————-
revision 1.12
date: 2015/12/24 06:02:52; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.11
date: 2015/12/24 05:59:29; author: root; state: Exp; lines: +2 -1
checking if se corrected or not
—————————-
revision 1.10
date: 2015/12/24 05:57:39; author: root; state: Exp; lines: +1 -1
se.
—————————-
revision 1.9
date: 2015/12/24 05:56:10; author: root; state: Exp; lines: +1 -0
wait().
—————————-
revision 1.8
date: 2015/12/23 18:31:04; author: root; state: Exp; lines: +1 -1
se
—————————-
revision 1.6
date: 2015/12/23 18:27:36; author: root; state: Exp; lines: +2 -2
sum declared
—————————-
revision 1.5
date: 2015/12/23 18:25:11; author: root; state: Exp; lines: +4 -0
performing sum operation in server.c and printing the result
—————————-
revision 1.4
date: 2015/12/23 18:15:33; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/12/23 18:11:58; author: root; state: Exp; lines: +4 -2
readeing from rfd
—————————-
revision 1.2
date: 2015/12/23 16:23:06; author: root; state: Exp; lines: +4 -4
program formatting made better by adding /n to the printf statement
—————————-
revision 1.1
date: 2015/12/23 16:10:58; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: client1.c,v
Working file: client1.c
head: 1.17
branch:
locks: strict
root: 1.17
access list:
symbolic names:
keyword substitution: kv
total revisions: 17; selected revisions: 17
description:
This is a client program which will generate requests
rfd and wfd taken through CLA are coonvertwd to integer using atoi();
creating request using struct request
—————————-
revision 1.17 locked by: root;
date: 2015/12/26 10:38:20; author: root; state: Exp; lines: +2 -2
This is a requesting client that requests the server.
—————————-
revision 1.16
date: 2015/12/24 18:00:55; author: root; state: Exp; lines: +7 -2
Client1 sending request and accepting the result from server
—————————-
revision 1.15
date: 2015/12/24 11:40:45; author: root; state: Exp; lines: +8 -8
*** empty log message ***
—————————-
revision 1.14
date: 2015/12/24 11:28:33; author: root; state: Exp; lines: +1 -1
request written by client1 is read and printed by the server.
—————————-
revision 1.12
date: 2015/12/24 08:00:18; author: root; state: Exp; lines: +2 -1
running check
—————————-
revision 1.2
date: 2015/12/23 16:23:06; author: root; state: Exp; lines: +6 -6
program formatting made better by adding /n to the printf statement
checking if previous error is removed or not
—————————-
revision 1.1
date: 2015/12/23 16:10:58; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: adder.c,v
Working file: adder.c
head: 1.13
branch:
locks: strict
root: 1.13
access list:
symbolic names:
keyword substitution: kv
total revisions: 13; selected revisions: 13
description:
client2 created for processing the request sent by client1 through server
sum calculated and written to server through pipe2
—————————-
revision 1.7
date: 2015/12/26 10:58:42; author: root; state: Exp; lines: +1 -1
trying to fetch the operator
—————————-
revision 1.6
date: 2015/12/26 10:38:20; author: root; state: Exp; lines: +1 -2
Adder.c is a processing client that processes the request recieved from requesting client through the server
After processing the request it sends it back to the server
—————————-
revision 1.1
date: 2015/12/24 18:00:55; 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:
Client 2 for sending request to the substractor for finding the difference betweenm two numbers
—————————-
revision 1.1 locked by: root;
date: 2015/12/28 17:56:31; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: substract.c,v
Working file: substract.c
head: 1.3
branch:
locks: strict
root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
processing client for findingf the difference between two numbers and again sending the result to the server
/
—————————-
revision 1.3 locked by: root;
date: 2015/12/28 19:15:34; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/28 18:05:17; author: root; state: Exp; lines: +1 -1
number getting subtracted
—————————-
revision 1.1
date: 2015/12/28 17:56:31; 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:
This is third requesting client which requests server for performing multiplication
—————————-
revision 1.1 locked by: root;
date: 2015/12/28 19:03:27; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: multiply.c,v
Working file: multiply.c
head: 1.2
branch:
locks: strict
root: 1.2
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
this is third processing client that multiplies the two number and sends the result back to the server
—————————-
revision 1.2 locked by: root;
date: 2015/12/28 19:15:34; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/28 19:03:27; author: root; state: Exp;
Initial revision
=============================================================================

Posted in Uncategorized | Leave a comment

Single Requesting Client and Single Processing Client – Logfile 26th dec 2015

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
        root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;     selected revisions: 1
description:
All the required header files are included here
some important are
stdio.h
unistd.h
stdlib.h
string.h
—————————-
revision 1.1    locked by: root;
date: 2015/12/24 05:26:16;  author: root;  state: Exp;
Initial revision
=============================================================================
RCS file: request.h,v
Working file: request.h
head: 1.14
branch:
locks: strict
        root: 1.14
access list:
symbolic names:
keyword substitution: kv
total revisions: 14;    selected revisions: 14
description:
This header file defines the structure of the request.
—————————-
revision 1.6
date: 2015/12/24 11:29:35;  author: root;  state: Exp;  lines: +1 -2
data type of oper changed to char from int
—————————-
revision 1.5
date: 2015/12/24 08:40:46;  author: root;  state: Exp;  lines: +2 -1
changing the order of request
—————————-
revision 1.1
date: 2015/12/23 16:17:49;  author: root;  state: Exp;
Initial revision


=============================================================================

RCS file: server.c,v
Working file: server.c
head: 1.47
branch:
locks: strict
        root: 1.47
access list:
symbolic names:
keyword substitution: kv
total revisions: 47;    selected revisions: 47
description:
This is Server program that accepts requests and processes and returns it to the specified client
a child process is started using fork(); which further starts a new process using execl();
—————————-
revision 1.47   locked by: root;
date: 2015/12/26 10:45:49;  author: root;  state: Exp;  lines: +1 -1
sleep(1) is applied at some point in the program
—————————-
revision 1.46
date: 2015/12/26 10:38:20;  author: root;  state: Exp;  lines: +8 -8
This is a server process that recieves the request from the requesting client sends it to the processing client and provides the result submitted by the processing client to the requesting client
—————————-
revision 1.30
date: 2015/12/24 18:00:55;  author: root;  state: Exp;  lines: +31 -9
server program accepts request from client1 and gets it processed by client2 i.e adder.c
and agan sends it to the requesting client
—————————-
revision 1.27
date: 2015/12/24 11:28:33;  author: root;  state: Exp;  lines: +5 -21
request written by client1 is read and printed by the server.
—————————-
revision 1.26
date: 2015/12/24 09:19:18;  author: root;  state: Exp;  lines: +13 -11
checking if the request is recieved properly or not
—————————-
revision 1.19
date: 2015/12/24 08:54:41;  author: root;  state: Exp;  lines: +10 -4
fetching the data from request
—————————-
revision 1.17
date: 2015/12/24 08:37:08;  author: root;  state: Exp;  lines: +3 -7
changed to previous state
—————————-
revision 1.13
date: 2015/12/24 07:57:07;  author: root;  state: Exp;  lines: +2 -2
trying fetch the data recieved
—————————-
revision 1.11
date: 2015/12/24 05:59:29;  author: root;  state: Exp;  lines: +2 -1
checking if se corrected or not
—————————-
revision 1.6
date: 2015/12/23 18:27:36;  author: root;  state: Exp;  lines: +2 -2
sum declared
—————————-
revision 1.5
date: 2015/12/23 18:25:11;  author: root;  state: Exp;  lines: +4 -0
performing sum operation in server.c and printing the result
—————————-
revision 1.3
date: 2015/12/23 18:11:58;  author: root;  state: Exp;  lines: +4 -2
readeing from rfd
—————————-
revision 1.1
date: 2015/12/23 16:10:58;  author: root;  state: Exp;
Initial revision
=============================================================================
RCS file: client1.c,v
Working file: client1.c
head: 1.17
branch:
locks: strict
        root: 1.17
access list:
symbolic names:
keyword substitution: kv
total revisions: 17;    selected revisions: 17
description:
This is a client program which will generate requests
rfd and wfd taken through CLA are coonvertwd to integer using atoi();
creating request using struct request
—————————-
revision 1.17   locked by: root;
date: 2015/12/26 10:38:20;  author: root;  state: Exp;  lines: +2 -2
This is a requesting client that requests the server.
—————————-
revision 1.16
date: 2015/12/24 18:00:55;  author: root;  state: Exp;  lines: +7 -2
Client1 sending request and accepting the result from server
—————————-
revision 1.15
date: 2015/12/24 11:40:45;  author: root;  state: Exp;  lines: +8 -8
*** empty log message ***
—————————-
revision 1.14
date: 2015/12/24 11:28:33;  author: root;  state: Exp;  lines: +1 -1
request written by client1 is read and printed by the server.
—————————-
revision 1.10
date: 2015/12/23 17:53:42;  author: root;  state: Exp;  lines: +1 -1
ret declared
———————–revision 1.9
date: 2015/12/23 17:52:55;  author: root;  state: Exp;  lines: +5 -4
wrote to the wfd
———————————
revision 1.2
date: 2015/12/23 16:23:06;  author: root;  state: Exp;  lines: +6 -6
program formatting made better by adding /n to the printf statement
checking if previous error is removed or not
—————————-
revision 1.1
date: 2015/12/23 16:10:58;  author: root;  state: Exp;
Initial revision
=============================================================================
RCS file: adder.c,v
Working file: adder.c
head: 1.13
branch:
locks: strict
        root: 1.13
access list:
symbolic names:
keyword substitution: kv
total revisions: 13;    selected revisions: 13
description:
client2 created for processing the request sent by client1 through server
sum calculated and written to server through pipe2
—————————-
revision 1.7
date: 2015/12/26 10:58:42;  author: root;  state: Exp;  lines: +1 -1
trying to fetch the operator
—————————-
revision 1.6
date: 2015/12/26 10:38:20;  author: root;  state: Exp;  lines: +1 -2
Adder.c is a processing client that processes the request recieved from requesting client through the server
After processing the request it sends it back to the server
—————————-
revision 1.1
date: 2015/12/24 18:00:55;  author: root;  state: Exp;
Initial revision
=============================================================================
Posted in Uncategorized | Leave a comment

project 03 client server using ipc and threads by using pipe () system call at genrate the request byclient and accept by server(Logfile)

RCS file: request.h,v
Working file: request.h
head: 1.4
branch:
locks: strict
root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4; selected revisions: 4
description:
it defines the structure of the request.
—————————-
revision 1.4 locked by: root;
date: 2015/12/23 17:35:20; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/12/23 17:25:37; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/23 16:43:49; author: root; state: Exp; lines: +1 -1
include ; before int main
it meand include ; in request.h
—————————-
revision 1.1
date: 2015/12/23 16:18:23; author: root; state: Exp;
Initial revision
RCS file: client1.c,v
Working file: client1.c
head: 1.14
branch:
locks: strict
root: 1.14
access list:
symbolic names:
keyword substitution: kv
total revisions: 14; selected revisions: 14
description:
this is aclient progran which will genrate arequest.
rfd and wfd file is found throw cmmand line argument usin pipe system call.
creating requuest using struct request.
—————————-
revision 1.14 locked by: root;
date: 2015/12/23 18:19:10; author: root; state: Exp; lines: +1 -0
write character in wfd.
—————————-
revision 1.13
date: 2015/12/23 17:53:11; author: root; state: Exp; lines: +4 -2
write something on wfd.
—————————-
revision 1.12
date: 2015/12/23 17:45:11; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.11
date: 2015/12/23 17:40:46; author: root; state: Exp; lines: +1 -1
*** empty log message ***
revision 1.10
date: 2015/12/23 17:36:12; author: root; state: Exp; lines: +1 -2
*** empty log message ***
—————————-
revision 1.9
date: 2015/12/23 17:33:39; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.8
date: 2015/12/23 17:30:07; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.7
date: 2015/12/23 17:27:12; author: root; state: Exp; lines: +3 -2
*** empty log message ***
—————————-
revision 1.6
date: 2015/12/23 17:25:36; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2015/12/23 16:57:35; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2015/12/23 16:46:34; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/12/23 16:43:38; author: root; state: Exp; lines: +2 -2
include ;
—————————-
revision 1.2
date: 2015/12/23 16:27:27; author: root; state: Exp; lines: +1 -1
command line argument is changed.

Posted in Uncategorized | Leave a comment

Client Server using IPC and Threads – Created Pipe using pipe() system call and request written by client and read by the server(Logfile)

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
        root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;     selected revisions: 1
description:
All the required header files are included here
some important are
stdio.h
unistd.h
stdlib.h
string.h
—————————-
revision 1.1    locked by: root;
date: 2015/12/24 05:26:16;  author: root;  state: Exp;
Initial revision
=============================================================================
RCS file: request.h,v
Working file: request.h
head: 1.4
branch:
locks: strict
        root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4;     selected revisions: 4
description:
This header file defines the structure of the request.
—————————-
revision 1.4    locked by: root;
date: 2015/12/23 17:42:28;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/12/23 17:34:29;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/23 17:33:04;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.1
date: 2015/12/23 16:17:49;  author: root;  state: Exp;
Initial revision
=============================================================================
RCS file: server.c,v
Working file: server.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 Server program that accepts requests and processes and returns it to the specified client
a child process is started using fork(); which further starts a new process using execl();
—————————-
revision 1.8    locked by: root;
date: 2015/12/23 18:31:04;  author: root;  state: Exp;  lines: +1 -1
se
—————————-
revision 1.7
date: 2015/12/23 18:30:34;  author: root;  state: Exp;  lines: +4 -3
*** empty log message ***
—————————-
revision 1.6
date: 2015/12/23 18:27:36;  author: root;  state: Exp;  lines: +2 -2
sum declared
—————————-
revision 1.5
date: 2015/12/23 18:25:11;  author: root;  state: Exp;  lines: +4 -0
performing sum operation in server.c and printing the result
—————————-
revision 1.4
date: 2015/12/23 18:15:33;  author: root;  state: Exp;  lines: +2 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/12/23 18:11:58;  author: root;  state: Exp;  lines: +4 -2
readeing from rfd
—————————-
revision 1.2
date: 2015/12/23 16:23:06;  author: root;  state: Exp;  lines: +4 -4
program formatting made better by adding /n to the printf statement
—————————-
revision 1.1
date: 2015/12/23 16:10:58;  author: root;  state: Exp;
Initial revision
=============================================================================
RCS file: client1.c,v
Working file: client1.c
head: 1.11
branch:
locks: strict
        root: 1.11
access list:
symbolic names:
keyword substitution: kv
total revisions: 11;    selected revisions: 11
description:
This is a client program which will generate requests
rfd and wfd taken through CLA are coonvertwd to integer using atoi();
creating request using struct request
—————————-
revision 1.11   locked by: root;
date: 2015/12/23 18:25:11;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.10
date: 2015/12/23 17:53:42;  author: root;  state: Exp;  lines: +1 -1
ret declared
—————————-
revision 1.9
date: 2015/12/23 17:52:55;  author: root;  state: Exp;  lines: +5 -4
wrote to the wfd
—————————-
revision 1.8
date: 2015/12/23 17:42:26;  author: root;  state: Exp;  lines: +4 -3
*** empty log message ***
—————————-
revision 1.7
date: 2015/12/23 17:33:41;  author: root;  state: Exp;  lines: +1 -2
*** empty log message ***
—————————-
revision 1.6
date: 2015/12/23 17:20:47;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2015/12/23 17:18:35;  author: root;  state: Exp;  lines: +1 -0
*** empty log message ***
—————————-
revision 1.4
date: 2015/12/23 17:15:22;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/12/23 16:57:18;  author: root;  state: Exp;  lines: +2 -2
*** empty log message ***
—————————-
revision 1.2
date: 2015/12/23 16:23:06;  author: root;  state: Exp;  lines: +6 -6
program formatting made better by adding /n to the printf statement
checking if previous error is removed or not
—————————-
revision 1.1
date: 2015/12/23 16:10:58;  author: root;  state: Exp;
Initial revision
=============================================================================

 

Posted in Uncategorized | Leave a comment