EmbLogic's Blog

Client Server communication -IPC ( using message queue )

header file ———————————-

 
RCS file: ./header.h,v
Working file: ./header.h
head: 1.5
branch:
locks: strict
root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
—————————-
revision 1.5 locked by: root;
date: 2014/08/23 08:22:06; author: root; state: Exp; lines: +2 -0
gave pid to struct data member.
—————————-
revision 1.4
date: 2014/08/17 10:33:23; author: root; state: Exp; lines: +1 -0
add result to struct data members.
—————————-
revision 1.3
date: 2014/08/17 09:36:55; author: root; state: Exp; lines: +1 -1
implemented fork().
—————————-
revision 1.2
date: 2014/08/16 06:15:00; author: root; state: Exp; lines: +3 -3
declared header files for server.
declared structure for data & msg queue.
—————————-
revision 1.1
date: 2014/08/16 06:08:32; author: root; state: Exp;
Initial revision
=============================================================================

server ————————————-

 
RCS file: ./server.c,v
Working file: ./server.c
head: 1.24
branch:
locks: strict
root: 1.24
access list:
symbolic names:
keyword substitution: kv
total revisions: 24; selected revisions: 24
description:
—————————-
revision 1.24 locked by: root;
date: 2014/08/23 08:05:07; author: root; state: Exp; lines: +3 -3
………………
—————————-
revision 1.23
date: 2014/08/23 07:59:40; author: root; state: Exp; lines: +21 -9
made msgsnd afterr1.mtype
run processing clients in backg & while(1).
completed using 3 clients.
—————————-
revision 1.22
date: 2014/08/23 05:01:22; author: root; state: Exp; lines: +3 -3
completed
—————————-
revision 1.21
date: 2014/08/22 16:41:30; author: root; state: Exp; lines: +9 -4
gave pid member to struct data.
assigned to mtype 1 for +,2 for -,3 for *.
assigned vale of pid to mtype after received from processing client.
—————————-
revision 1.20
date: 2014/08/20 04:29:05; author: root; state: Exp; lines: +1 -1
implemented fork for creating three child.
—————————-
revision 1.19
date: 2014/08/20 04:21:38; author: root; state: Exp; lines: +1 -1
created two child.
—————————-
revision 1.18
date: 2014/08/20 04:05:42; author: root; state: Exp; lines: +3 -3
run processing clients in background.
—————————-
revision 1.17
date: 2014/08/17 13:17:36; author: root; state: Exp; lines: +40 -37
made whole process in while loop.
—————————-
revision 1.16
date: 2014/08/17 11:57:36; author: root; state: Exp; lines: +11 -0
implemented msgsnd() for sending struct msg to resultant client.
—————————-
revision 1.15
date: 2014/08/17 11:25:31; author: root; state: Exp; lines: +1 -1
. .
—————————-
revision 1.14
date: 2014/08/17 11:23:04; author: root; state: Exp; lines: +9 -7
implemented msgrcv() for receiving struct msg from msg_queue4.
—————————-
revision 1.13
date: 2014/08/17 11:15:37; author: root; state: Exp; lines: +9 -0
\made system call according to operator from client.
—————————-
revision 1.12
date: 2014/08/17 11:07:29; author: root; state: Exp; lines: +1 -1
declared id2.
—————————-
revision 1.11
date: 2014/08/17 11:06:55; author: root; state: Exp; lines: +4 -4
*** empty log message ***
—————————-
revision 1.10
date: 2014/08/17 11:05:20; author: root; state: Exp; lines: +25 -14
changed msgqueue id’s name.
wrote struct msg to msgqueue3.
—————————-
revision 1.9
date: 2014/08/17 10:13:46; author: root; state: Exp; lines: +1 -1
changed msgtyp in msgrcv() to 0.
—————————-
revision 1.8
date: 2014/08/17 09:43:09; author: root; state: Exp; lines: +3 -3
changed struct msg member name b to d.
—————————-
revision 1.7
date: 2014/08/17 09:41:06; author: root; state: Exp; lines: +6 -1
used system call msgrcv for receiving msg from msg_queue1.
—————————-
revision 1.6
date: 2014/08/17 09:38:01; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.5
date: 2014/08/17 09:37:18; author: root; state: Exp; lines: +13 -1
implemented fork().
—————————-
revision 1.4
date: 2014/08/16 07:00:17; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.3
date: 2014/08/16 06:54:17; author: root; state: Exp; lines: +7 -3
checked msg queue id for msg_queue1.
changed key for queue1,queue2,queue3,queue4.
printed msg_queue id for all queues.
—————————-
revision 1.2
date: 2014/08/16 06:24:53; author: root; state: Exp; lines: +19 -1
contain basic program for server
craeted four msg queues.
—————————-
revision 1.1
date: 2014/08/16 06:08:47; author: root; state: Exp;
Initial revision
=============================================================================

client  ————————————–

 
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:
contain basic program for client1
created queue for transmitting msg from client1 to server.
—————————-
revision 1.22 locked by: root;
date: 2014/08/22 16:50:42; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.21
date: 2014/08/22 16:46:15; author: root; state: Exp; lines: +1 -1
assigned pid to member pid.
—————————-
revision 1.20
date: 2014/08/20 04:41:00; author: root; state: Exp; lines: +1 -1
improved result statement.
—————————-
revision 1.19
date: 2014/08/20 04:18:36; author: root; state: Exp; lines: +1 -1
..
—————————-
revision 1.18
date: 2014/08/18 04:55:16; author: root; state: Exp; lines: +2 -20
*** empty log message ***
—————————-
revision 1.17
date: 2014/08/18 04:39:10; author: root; state: Exp; lines: +4 -0
implemented system call msgctl() to remove created msgqueue’s.
—————————-
revision 1.16
date: 2014/08/18 04:37:36; author: root; state: Exp; lines: +2 -2
..
—————————-
revision 1.15
date: 2014/08/18 04:36:14; author: root; state: Exp; lines: +18 -4
implemented msgget() for msgq 3 & 4.
—————————-
revision 1.14
date: 2014/08/17 12:54:25; author: root; state: Exp; lines: +1 -1
changed msgflag in msgget() for msq1.
—————————-
revision 1.13
date: 2014/08/17 12:10:13; author: root; state: Exp; lines: +1 -1
changed arg 2 of msgsnd.
—————————-
revision 1.12
date: 2014/08/17 12:08:18; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.11
date: 2014/08/17 12:05:20; author: root; state: Exp; lines: +14 -2
modified msgrcv().
created msg_queue2.
—————————-
revision 1.10
date: 2014/08/17 12:01:52; author: root; state: Exp; lines: +3 -1
implemented msgrcv() for receiving result from server.
—————————-
revision 1.9
date: 2014/08/17 11:44:57; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.8
date: 2014/08/17 11:44:09; author: root; state: Exp; lines: +2 -2
..
—————————-
revision 1.7
date: 2014/08/17 11:42:25; author: root; state: Exp; lines: +5 -5
entered user data using command line.
—————————-
revision 1.6
date: 2014/08/17 09:24:43; author: root; state: Exp; lines: +7 -2
implemented system call msgsnd().]
—————————-
revision 1.5
date: 2014/08/16 07:23:57; author: root; state: Exp; lines: +1 -1
modified arg 2 of msgsnd.
—————————-
revision 1.4
date: 2014/08/16 07:21:03; author: root; state: Exp; lines: +7 -6
gave system call() msgsnd().
—————————-
revision 1.3
date: 2014/08/16 07:17:07; author: root; state: Exp; lines: +5 -0
gave user data in structure msg.
—————————-
revision 1.2
date: 2014/08/16 07:00:55; author: root; state: Exp; lines: +1 -0
printmsg_queue1 id.
—————————-
revision 1.1
date: 2014/08/16 06:49:46; author: root; state: Exp;
Initial revision
=============================================================================

addition ——————————————-

 
RCS file: ./add.c,v
Working file: ./add.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
implemented program code for addition.
—————————-
revision 1.1 locked by: root;
date: 2014/08/23 16:38:40; author: root; state: Exp;
Initial revision
=============================================================================

subtraction —————————————-

 
RCS file: ./subb.c,v
Working file: ./subb.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
implemented program code for subtraction.
—————————-
revision 1.1 locked by: root;
date: 2014/08/23 16:39:37; author: root; state: Exp;
Initial revision
=============================================================================

multipication —————————————–

 
RCS file: ./mul.c,v
Working file: ./mul.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
implemented program code for multipocation.
—————————-
revision 1.1 locked by: root;
date: 2014/08/23 16:40:23; author: root; state: Exp;
Initial revision
=============================================================================

Leave a Reply

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

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