This assignment is an enhancement of Assignment 3. Start by making a copy of your Assignment 3 files and rename them accordingly.
To make things easier for yourself, read and send the numbers in your client
app the same way you have been reading book title text lines for your
book server applications. In your server, use your version of the
book's readline()
to read each line and use
atof(3)
or strtod(3)
to convert them from
string format to double precision floating point numbers in your server.
Since your client program now has more work to do AFTER the last text
line has been read from from the keyboard, you can not skimp by with calling
exit(3)
right away when your fgets(3)
returns an
EOF!
Here is the Makefile that MUST be used by students in section 1 to
compile the application code for this assignment. Note that this
Makefile will produce client application executables named
prog5_client
and a server application executable named
prog5_server
.
To hand in this assignment, execute the following command on tiger:
mail_prog.631 prog5_client.c wrapper.c wrapper.h in_out.c in_out.h query.c query.h prog5_server.c serv.c serv.h
Last modified: 2018-05-28 11:04:55 CDT
Copyright © 2025 John Winans All rights reserved.