RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
This is the base aedder file.
Included stdio.h, unistd.h, fcntl.h
----------------------------
revision 1.1
date: 2015/04/19 09:28:45; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: request.h,v
Working file: request.h
head: 1.2
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 2; selected revisions: 2
description:
Defined the request format.
----------------------------
revision 1.2
date: 2015/04/19 09:38:05; author: root; state: Exp; lines: +1 -1
*** empty log message ***
----------------------------
revision 1.1
date: 2015/04/19 09:28:45; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: client_server-1.c,v
Working file: client_server-1.c
head: 1.13
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 13; selected revisions: 13
description:
This is the main program for our project.
Client Server
created a pipe and forked - execl() the requesting client 1
Also passed the file descriptors associaed with pipe.
----------------------------
revision 1.13
date: 2015/04/19 10:20:05; author: root; state: Exp; lines: +3 -1
Trying to put the server onto block on read . soa as to give more time for the adder to execute.
----------------------------
revision 1.12
date: 2015/04/19 10:17:26; author: root; state: Exp; lines: +1 -1
*** empty log message ***
----------------------------
revision 1.11
date: 2015/04/19 10:16:13; author: root; state: Exp; lines: +5 -5
Delayed the terminatin od the server.
----------------------------
revision 1.10
date: 2015/04/19 10:12:04; author: root; state: Exp; lines: +16 -1
forwarding the request to the adder
----------------------------
revision 1.9
date: 2015/04/19 10:02:51; author: root; state: Exp; lines: +7 -12
Optimizing the server.
----------------------------
revision 1.8
date: 2015/04/19 10:01:07; author: root; state: Exp; lines: +0 -5
Removed the debugging ststements .
----------------------------
revision 1.7
date: 2015/04/19 09:58:56; author: root; state: Exp; lines: +4 -4
Issue:
The file descriptors of the pipe were being converted to strings before sending to the execl()
We were wrongly converting 4 bytes inters (file_descritors) into a 1 byte characters.
Now we changed it to char arrays of 4 bytes each.
----------------------------
revision 1.6
date: 2015/04/19 09:57:17; author: root; state: Exp; lines: +3 -0
Printing the pipe file descriptors after conversion to strings.
----------------------------
revision 1.5
date: 2015/04/19 09:53:50; author: root; state: Exp; lines: +3 -0
Printing the file descritors of the pipe.
Issue:
The server is not reading the request as sent by the client
The client is getting wrong file descriptor numbers.
instead of 3 and 4
it is getting 0 and 4.
----------------------------
revision 1.4
date: 2015/04/19 09:48:58; author: root; state: Exp; lines: +1 -0
Introduced a little delay in the server program, after forking the child.
----------------------------
revision 1.3
date: 2015/04/19 09:42:17; author: root; state: Exp; lines: +11 -1
Reading the request from the requesting client, through the pipe.
printing the request.
----------------------------
revision 1.2
date: 2015/04/19 09:32:43; author: root; state: Exp; lines: +1 -1
Passing the logical addresses of the arguments in execl().
----------------------------
revision 1.1
date: 2015/04/19 09:28:45; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: req_cli_1.c,v
Working file: req_cli_1.c
head: 1.5
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
This is the first requesting client.
Getting invoked by the main program.
Just printing the filename for now.
----------------------------
revision 1.5
date: 2015/04/19 10:23:21; author: root; state: Exp; lines: +5 -1
It is now reading the result from the pipe.
But the result is still not available.
Therefore it goes intoblock on read
----------------------------
revision 1.4
date: 2015/04/19 09:50:48; author: root; state: Exp; lines: +2 -0
Printing the file descriptors.
----------------------------
revision 1.3
date: 2015/04/19 09:38:09; author: root; state: Exp; lines: +10 -0
Preparignthe request.
converting the file descriptors from atrings to integers using atoi().
Writing the request into the pipe.
----------------------------
revision 1.2
date: 2015/04/19 09:31:24; author: root; state: Exp; lines: +1 -1
Updated the debugging ststement. Printing the filename.
----------------------------
revision 1.1
date: 2015/04/19 09:28:45; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: adder.c,v
Working file: adder.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
This is the adder program.
It collects pipe file descriptors from th ecommand line arguments.
Then it reads the request from the pipe.
----------------------------
revision 1.1
date: 2015/04/19 10:12:20; author: root; state: Exp;
Initial revision
=============================================================================
It looks like you're new here. If you want to get involved, click one of these buttons!