This lab was developed by Prof. L. Felipe Perrone. Permission to reuse this material in parts or in its entirety is granted provided that this credits note is not removed. Additional students files associated with this lab, as well as any existing solutions can be provided upon request by e-mail to: perrone[at]bucknell[dot]edu
It should go without saying that all the work that you will turn in for this lab will be yours. You should try your best to debug your code on your own, but it’s fine to get help from a colleague as long as that means getting assistance to identify the problem and doesn’t go as far as receiving source code to fix it (in writing or orally).
Before you start, do the following on a terminal:
cd ~/csci307/Labs/Lab5
cp ~perrone/csci307/Labs/Lab5/* .
After you debug your code and get everything working correctly, add, commit and push your files to your gitlab as follows:
git add answers.txt
git commit -m "lab5-1 completed"
git push
In this problem you will complete the skeleton code in files echod.c and echoreq.c to create an echo server and an echo request program. To test these, we recommend that you first run echod in your local machine and later run echoreq in a different machine. When you run echoreq, it will send a string to the server and then wait for a response. The server will receive that string and send it back to echoreq without any modifications. When the server’s response arrives at echoreq, the program will print it to the terminal and terminate.
After you debug your code and get everything working correctly, add, commit and push your files to your gitlab as follows:
git add echoreq.c
git add echod.c
git commit -m "lab5-2 completed"
git push
After you debug your code and get everything working correctly, add, commit and push your files to your gitlab as follows:
git add Makefile
git add snode.h snode.c
git add slist.h slist.c
git add flight.h flight.c
git add flightClient-tcp.c flightServer-tcp.c
git commit -m “lab5-3 completed”
git push
Modify the Makefile given to you so that it also generates all the executables in this assignment.
After you debug your code and get everything working correctly, add, commit and push your files to your gitlab as follows:
git add Makefile
git commit -m "lab5-4 completed"
git push
The rubric below shows the number of points that will be earned for each item that compiles and runs correctly. If the item does not compile correctly, 60% of the total points will be deducted. If the item compiles correctly and runs with major errors, 40% of the total points will be deducted. If the item compiles correctly and runs with minor errors, 20% of the total points will be deducted. If the item compiles with warnings, and runs correctly, 10% of the total points will be deducted.