EmbLogic's Blog

Implemented ipc using fifo for 1 client

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:
Decleared the standard headerfiles used for the program 
also 
Decleared the structure for req_client
Gave the prototype for invoke_pro_client()
Decleared the prototype for union senum for implementing semaphores
Gave the prototyoe for the wait operation i.e semaphore_p() and also for the signal operation i.e semaphore_v()
----------------------------
revision 1.1	locked by: root;
date: 2015/03/30 11:53:24;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: req_client.c,v
Working file: req_client.c
head: 1.1
branch:
locks: strict
	root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;	selected revisions: 1
description:
Created FIFO in O_WRONLY mode 
writing the request structure into the server through fifo .
Again Created Result FIFO in O_RDONLY mode 
Accepting the Result from the server through FIFO.
Displaying the result.
----------------------------
revision 1.1	locked by: root;
date: 2015/03/30 11:58:42;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: pro_client.c,v
Working file: pro_client.c
head: 1.1
branch:
locks: strict
	root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;	selected revisions: 1
description:
Accepting the request structure through pipe from the server.
Performing adding operation.
Sending the result back to the server.
Performing kill operation to kill the signal.
----------------------------
revision 1.1	locked by: root;
date: 2015/03/30 12:07:24;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: server.c,v
Working file: server.c
head: 1.1
branch:
locks: strict
	root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;	selected revisions: 1
description:
Accepting the request structure frm the req_client through req_client fifo.
Created pipe between server and pro_client.
Sending the request structure to the pro_client through pipe.
Also Created the signal function and signal handler.
Created  a semaphore by using semget()and also initializes the semaphore by using semctl().
Also destroyed that semaphore by using IPC_RMID command .
Accepting the Result from the pro_client through pipe 
Also sending the result back to the req_client through Result FIFO.
----------------------------
revision 1.1	locked by: root;
date: 2015/03/30 12:25:53;  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>