EmbLogic's Blog

communication between 6 client through server using ipc is successfully done.

RCS file: header.h,v
Working file: header.h
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 header file.
include stdio.h,unistd.h
declare prototype of invoke_req_client function
—————————-
revision 1.11 locked by: root;
date: 2015/03/10 08:27:02; author: root; state: Exp; lines: +1 -0
include signal.h
—————————-
revision 1.10
date: 2015/03/10 08:25:34; author: root; state: Exp; lines: +1 -0
declare prototype for function()
—————————-
revision 1.9
date: 2015/03/10 08:04:39; author: root; state: Exp; lines: +1 -0
declare prototype for read_result function.
—————————-
revision 1.8
date: 2015/03/10 07:43:20; author: root; state: Exp; lines: +1 -1
add ; at end of function prototype.
—————————-
revision 1.7
date: 2015/03/10 07:38:22; author: root; state: Exp; lines: +2 -1
declare prototype for write_request function.
—————————-
revision 1.6
date: 2015/03/10 07:20:40; author: root; state: Exp; lines: +1 -0
declare prototype for read_request function
—————————-
revision 1.5
date: 2015/03/10 06:50:42; author: root; state: Exp; lines: +1 -1
add ; at end of structure
—————————-
revision 1.4
date: 2015/03/10 06:47:22; author: root; state: Exp; lines: +6 -0
declare structure struct request
—————————-
revision 1.3
date: 2015/03/10 06:38:31; author: root; state: Exp; lines: +1 -0
declare prototype for invoke_pro_client
create pipes
create new process using execl
—————————-
revision 1.2
date: 2015/03/10 05:32:37; author: root; state: Exp; lines: +1 -0
include stdlib.h
—————————-
revision 1.1
date: 2015/03/10 05:14:02; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: server.c,v
Working file: server.c
head: 1.49
branch:
locks: strict
root: 1.49
access list:
symbolic names:
keyword substitution: kv
total revisions: 49; selected revisions: 49
description:
This is server.c file.
define invoke_req_client function
create 6 pipe using pipe system call
print all pipes
call invoke_req_client function in main()
—————————-
revision 1.49 locked by: root;
date: 2015/03/10 14:41:12; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.48
date: 2015/03/10 14:38:24; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.47
date: 2015/03/10 14:33:24; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.46
date: 2015/03/10 14:31:48; author: root; state: Exp; lines: +4 -4
*** empty log message ***
—————————-
revision 1.45
date: 2015/03/10 14:30:10; author: root; state: Exp; lines: +4 -4
*** empty log message ***
—————————-
revision 1.44
date: 2015/03/10 14:27:55; author: root; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.43
date: 2015/03/10 14:23:10; author: root; state: Exp; lines: +0 -2
*** empty log message ***
—————————-
revision 1.42
date: 2015/03/10 14:18:49; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.41
date: 2015/03/10 14:17:25; author: root; state: Exp; lines: +8 -6
write result to requesting client.
—————————-
revision 1.40
date: 2015/03/10 14:08:37; author: root; state: Exp; lines: +3 -1
print pid of all client
—————————-
revision 1.39
date: 2015/03/10 14:00:53; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.38
date: 2015/03/10 13:58:19; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.37
date: 2015/03/10 13:53:42; author: root; state: Exp; lines: +4 -2
kill all requesting client
—————————-
revision 1.36
date: 2015/03/10 13:40:11; author: root; state: Exp; lines: +2 -0
print pid of client 1
—————————-
revision 1.35
date: 2015/03/10 13:33:40; author: root; state: Exp; lines: +7 -0
if all signal occur then come out from while.
—————————-
revision 1.34
date: 2015/03/10 13:32:31; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.33
date: 2015/03/10 13:31:40; author: root; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.32
date: 2015/03/10 13:30:19; author: root; state: Exp; lines: +12 -2
set condition for each signal
—————————-
revision 1.31
date: 2015/03/10 13:28:18; author: root; state: Exp; lines: +2 -1
declare function2()
—————————-
revision 1.30
date: 2015/03/10 13:26:21; author: root; state: Exp; lines: +19 -6
define signal handler fro 3 signal
—————————-
revision 1.29
date: 2015/03/10 08:43:18; author: root; state: Exp; lines: +0 -1
remove pause
—————————-
revision 1.28
date: 2015/03/10 08:40:07; author: root; state: Exp; lines: +4 -6
print i
—————————-
revision 1.27
date: 2015/03/10 08:36:57; author: root; state: Exp; lines: +1 -1
pass fd to read()
—————————-
revision 1.26
date: 2015/03/10 08:35:00; author: root; state: Exp; lines: +8 -6
read one result at a time
—————————-
revision 1.25
date: 2015/03/10 08:31:14; author: root; state: Exp; lines: +1 -0
use pause system call.
—————————-
revision 1.24
date: 2015/03/10 08:28:44; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.23
date: 2015/03/10 08:27:41; author: root; state: Exp; lines: +1 -1
define storage for done variable
—————————-
revision 1.22
date: 2015/03/10 08:26:01; author: root; state: Exp; lines: +12 -1
define function()
—————————-
revision 1.21
date: 2015/03/10 08:15:31; author: root; state: Exp; lines: +4 -1
*** empty log message ***
—————————-
revision 1.20
date: 2015/03/10 08:05:07; author: root; state: Exp; lines: +12 -0
define read_result function
—————————-
revision 1.19
date: 2015/03/10 07:45:48; author: root; state: Exp; lines: +1 -1
chagne argument of write()
—————————-
revision 1.18
date: 2015/03/10 07:45:05; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.17
date: 2015/03/10 07:44:02; author: root; state: Exp; lines: +3 -3
uncomment write_request function
—————————-
revision 1.16
date: 2015/03/10 07:43:02; author: root; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.15
date: 2015/03/10 07:41:34; author: root; state: Exp; lines: +1 -1
comment write_request function
—————————-
revision 1.14
date: 2015/03/10 07:40:21; author: root; state: Exp; lines: +1 -1
correct spelling of request
—————————-
revision 1.13
date: 2015/03/10 07:38:44; author: root; state: Exp; lines: +15 -2
define write_request function
write request from server to processing client through pipe.
—————————-
revision 1.12
date: 2015/03/10 07:22:41; author: root; state: Exp; lines: +1 -1
define j
—————————-
revision 1.11
date: 2015/03/10 07:21:11; author: root; state: Exp; lines: +13 -1
define read_request function
—————————-
revision 1.10
date: 2015/03/10 06:39:47; author: root; state: Exp; lines: +36 -0
create pipes
create new process using execl
—————————-
revision 1.9
date: 2015/03/10 06:06:52; author: root; state: Exp; lines: +1 -1
correct spelling of sprintf.
—————————-
revision 1.8
date: 2015/03/10 06:04:20; author: root; state: Exp; lines: +4 -1
convert fd from integer to char using sprintf
pass rfd and wfd to each req_cl.
—————————-
revision 1.7
date: 2015/03/10 05:58:18; author: root; state: Exp; lines: +2 -1
print in default case
—————————-
revision 1.6
date: 2015/03/10 05:55:35; author: root; state: Exp; lines: +6 -5
create new process using execl in child process.
—————————-
revision 1.5
date: 2015/03/10 05:40:06; author: root; state: Exp; lines: +2 -2
comment fork()
—————————-
revision 1.4
date: 2015/03/10 05:37:28; author: root; state: Exp; lines: +0 -2
remove default case
—————————-
revision 1.3
date: 2015/03/10 05:32:52; author: root; state: Exp; lines: +1 -0
print child number.
—————————-
revision 1.2
date: 2015/03/10 05:26:27; author: root; state: Exp; lines: +19 -0
create child process using fork() in invoke_req_client function
—————————-
revision 1.1
date: 2015/03/10 05:14:02; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: multiplier.c,v
Working file: multiplier.c
head: 1.9
branch:
locks: strict
root: 1.9
access list:
symbolic names:
keyword substitution: kv
total revisions: 9; selected revisions: 9
description:
This is multiplier.c file
printf file name and rfd and wfd
—————————-
revision 1.9 locked by: root;
date: 2015/03/10 14:26:29; author: root; state: Exp; lines: +0 -2
*** empty log message ***
—————————-
revision 1.8
date: 2015/03/10 13:27:19; author: root; state: Exp; lines: +1 -1
send signal 4
—————————-
revision 1.7
date: 2015/03/10 08:15:35; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.6
date: 2015/03/10 08:06:56; author: root; state: Exp; lines: +1 -0
print request.
—————————-
revision 1.5
date: 2015/03/10 07:59:19; author: root; state: Exp; lines: +4 -3
compute result and write back to server through pipe.
—————————-
revision 1.4
date: 2015/03/10 07:53:57; author: root; state: Exp; lines: +1 -0
define structure variable r
—————————-
revision 1.3
date: 2015/03/10 07:52:50; author: root; state: Exp; lines: +1 -1
define count variable
—————————-
revision 1.2
date: 2015/03/10 07:51:51; author: root; state: Exp; lines: +3 -1
read request from server
—————————-
revision 1.1
date: 2015/03/10 06:40:29; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: adder.c,v
Working file: adder.c
head: 1.7
branch:
locks: strict
root: 1.7
access list:
symbolic names:
keyword substitution: kv
total revisions: 7; selected revisions: 7
description:
This is adder.c file
printf file name and rfd and wfd
—————————-
revision 1.7 locked by: root;
date: 2015/03/10 14:26:25; author: root; state: Exp; lines: +0 -2
*** empty log message ***
—————————-
revision 1.6
date: 2015/03/10 08:15:33; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.5
date: 2015/03/10 08:06:37; author: root; state: Exp; lines: +1 -0
print request
—————————-
revision 1.4
date: 2015/03/10 07:59:55; author: root; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.3
date: 2015/03/10 07:58:32; author: root; state: Exp; lines: +4 -3
compute result and write back to server through pipe.
—————————-
revision 1.2
date: 2015/03/10 07:51:12; author: root; state: Exp; lines: +5 -2
read request from server
—————————-
revision 1.1
date: 2015/03/10 06:40:29; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: subtractor.c,v
Working file: subtractor.c
head: 1.9
branch:
locks: strict
root: 1.9
access list:
symbolic names:
keyword substitution: kv
total revisions: 9; selected revisions: 9
description:
This is subtractor.c file
printf file name and rfd and wfd
—————————-
revision 1.9 locked by: root;
date: 2015/03/10 14:26:28; author: root; state: Exp; lines: +0 -2
*** empty log message ***
—————————-
revision 1.8
date: 2015/03/10 13:26:56; author: root; state: Exp; lines: +1 -1
send signal 3
—————————-
revision 1.7
date: 2015/03/10 08:15:34; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.6
date: 2015/03/10 08:06:50; author: root; state: Exp; lines: +1 -0
print request
—————————-
revision 1.5
date: 2015/03/10 07:59:14; author: root; state: Exp; lines: +4 -3
compute result and write back to server through pipe.
—————————-
revision 1.4
date: 2015/03/10 07:53:32; author: root; state: Exp; lines: +1 -0
define structure variable r
—————————-
revision 1.3
date: 2015/03/10 07:52:34; author: root; state: Exp; lines: +1 -1
define count variable
—————————-
revision 1.2
date: 2015/03/10 07:51:28; author: root; state: Exp; lines: +3 -1
read request from server
—————————-
revision 1.1
date: 2015/03/10 06:40:29; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: req_c1.c,v
Working file: req_c1.c
head: 1.10
branch:
locks: strict
root: 1.10
access list:
symbolic names:
keyword substitution: kv
total revisions: 10; selected revisions: 10
description:
This is req_cl1.c
file
print file name
—————————-
revision 1.10 locked by: root;
date: 2015/03/10 14:25:54; author: root; state: Exp; lines: +0 -2
use pause instead of while.
—————————-
revision 1.9
date: 2015/03/10 14:21:37; author: root; state: Exp; lines: +1 -11
*** empty log message ***
—————————-
revision 1.8
date: 2015/03/10 14:12:20; author: root; state: Exp; lines: +5 -2
*** empty log message ***
—————————-
revision 1.7
date: 2015/03/10 14:10:41; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.6
date: 2015/03/10 14:06:23; author: root; state: Exp; lines: +8 -6
print pid
—————————-
revision 1.5
date: 2015/03/10 13:54:09; author: root; state: Exp; lines: +14 -2
read result
—————————-
revision 1.4
date: 2015/03/10 13:41:39; author: root; state: Exp; lines: +1 -0
print pid
—————————-
revision 1.3
date: 2015/03/10 06:57:53; author: root; state: Exp; lines: +7 -1
write request into pipe
—————————-
revision 1.2
date: 2015/03/10 06:10:53; author: root; state: Exp; lines: +5 -1
read rfd and wfd from cmd line argument
convert fd into integer from string using atoi
—————————-
revision 1.1
date: 2015/03/10 05:56:08; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: req_c2.c,v
Working file: req_c2.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 req_cl2.c file
print file name
—————————-
revision 1.8 locked by: root;
date: 2015/03/10 14:26:08; author: root; state: Exp; lines: +0 -2
use pause instead of while.
—————————-
revision 1.7
date: 2015/03/10 14:21:39; author: root; state: Exp; lines: +3 -10
*** empty log message ***
—————————-
revision 1.6
date: 2015/03/10 14:10:43; author: root; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.5
date: 2015/03/10 14:06:31; author: root; state: Exp; lines: +9 -5
print pid
—————————-
revision 1.4
date: 2015/03/10 13:54:21; author: root; state: Exp; lines: +12 -1
read result
—————————-
revision 1.3
date: 2015/03/10 06:58:23; author: root; state: Exp; lines: +7 -0
write request into pipe
—————————-
revision 1.2
date: 2015/03/10 06:12:30; author: root; state: Exp; lines: +4 -1
convert fd into integer from string using atoi
—————————-
revision 1.1
date: 2015/03/10 05:56:08; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: req_c3.c,v
Working file: req_c3.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 req_c2.c file
print file name
—————————-
revision 1.8 locked by: root;
date: 2015/03/10 14:26:20; author: root; state: Exp; lines: +1 -2
use pause instead of while.
—————————-
revision 1.7
date: 2015/03/10 14:21:40; author: root; state: Exp; lines: +3 -10
*** empty log message ***
—————————-
revision 1.6
date: 2015/03/10 14:10:44; author: root; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.5
date: 2015/03/10 14:06:36; author: root; state: Exp; lines: +8 -5
print pid
—————————-
revision 1.4
date: 2015/03/10 13:54:26; author: root; state: Exp; lines: +13 -1
result
—————————-
revision 1.3
date: 2015/03/10 06:58:36; author: root; state: Exp; lines: +7 -0
write request into pipe
—————————-
revision 1.2
date: 2015/03/10 06:12:45; author: root; state: Exp; lines: +4 -1
convert fd into integer from string using atoi
—————————-
revision 1.1
date: 2015/03/10 05:56:08; 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>