EmbLogic's Blog

Server process handling the requests of a single Client using pipes.

RCS file: requesting_client.c,v
Working file: requesting_client.c
head: 1.6
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 6;    selected revisions: 6
description:
Requesting clients enter their data here.
Data includes the two operands and one operator.
—————————-
revision 1.6
date: 2014/01/06 00:33:13;  author: root;  state: Exp;  lines: +13 -5
Code is optimized by reducing the number of statements.
—————————-
revision 1.5
date: 2014/01/04 16:28:38;  author: root;  state: Exp;  lines: +7 -5
Final result is read by the requesting client from the pipe
—————————-
revision 1.4
date: 2014/01/03 18:46:50;  author: root;  state: Exp;  lines: +2 -2
Name of the variable is changed.
—————————-
revision 1.3
date: 2014/01/03 18:39:54;  author: root;  state: Exp;  lines: +2 -0
Statement is included to indicate that we are taking the data from requesting clients.
—————————-
revision 1.2
date: 2014/01/03 16:16:27;  author: root;  state: Exp;  lines: +6 -1
Previously arguments to main() function are incorrect.
Both error and warning are fixed.
file descriptor is collected from main() in string form and it is converted
back to integer.All the data from the structure is converted to a string using sprintf.
write() system call is used to write to the pipe.
Issue: Segmentation fault.
—————————-
revision 1.1
date: 2014/01/03 15:37:39;  author: root;  state: Exp;
Initial revision
=============================================================================
RCS file: processing_client.c,v
Working file: processing_client.c
head: 1.4
branch:
locks: strict
root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4;    selected revisions: 4
description:
Processing client is created for single client.
checking whether the functionality is correct or not.
—————————-
revision 1.4    locked by: root;
date: 2014/01/06 00:37:30;  author: root;  state: Exp;  lines: +0 -9
Code for processing client is optimized.
—————————-
revision 1.3
date: 2014/01/04 18:20:04;  author: root;  state: Exp;  lines: +17 -2
Subtract operation added in the processing client.
—————————-
revision 1.2
date: 2014/01/04 16:38:24;  author: root;  state: Exp;  lines: +1 -1
syntax error present.
bug fixed.
—————————-
revision 1.1
date: 2014/01/04 16:18:32;  author: root;  state: Exp;
Initial revision
=============================================================================

 
RCS file: server_process.c,v
Working file: server_process.c
head: 1.9
branch:
locks: strict
root: 1.9
access list:
symbolic names:
keyword substitution: kv
total revisions: 9;    selected revisions: 9
description:
Child process is created using fork() system call.
execl() is done in the child process and the file descriptor to write to pipe are passed.
—————————-
revision 1.9    locked by: root;
date: 2014/01/06 00:44:03;  author: root;  state: Exp;  lines: +20 -22
Code is optimized by reducing the number of redundant statements.
—————————-
revision 1.8
date: 2014/01/04 17:57:59;  author: root;  state: Exp;  lines: +8 -2
Logical error:Only one file descriptor is passed to the requesting client.
Bug fixed successfully result is coming as expected for the add operation.
—————————-
revision 1.7
date: 2014/01/04 17:24:38;  author: root;  state: Exp;  lines: +8 -4
Escape sequence \n is added to make the code more readable.
—————————-
revision 1.6
date: 2014/01/04 17:19:10;  author: root;  state: Exp;  lines: +8 -3
Segmentation fault was occurring earlier because of absence of & operator.
—————————-
revision 1.5
date: 2014/01/04 16:58:34;  author: root;  state: Exp;  lines: +6 -7
syntax error:Missing semicolon.
error fixed.
—————————-
revision 1.4
date: 2014/01/04 16:55:06;  author: root;  state: Exp;  lines: +7 -5
Requesting client is working properly to some extent but the
control is not coming back to the parent.
Logical error.
—————————-
revision 1.3
date: 2014/01/04 16:22:44;  author: root;  state: Exp;  lines: +11 -5
File descriptors are passed to processing clients.
A new child is created using fork() and then execl() is done.
The result is read by the server from the pipe.
—————————-
revision 1.2
date: 2014/01/03 18:47:55;  author: root;  state: Exp;  lines: +61 -4
Logical error is fixed.
—————————-
revision 1.1
date: 2014/01/03 16:22:40;  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>