One you have your proxy server working, take a minute to clean up the code. Remove anything unnecessary, make sure your variables have meaningful names, and format the code to make it easy to read.
Add comments to the code, at an appropriate level of abstraction. For example, do not write comments that are completely redundant with the code:
// add seven to a and store the result in x int x = a + 7;Instead, explain at a high level what each chunk of code does:
// keep looping until server quits while (true) { // get a line from the server and see if we're done String fromServer = serverIn.readLine(); if (fromServer == null) break; if (fromServer.equals("Bye.")) break; ...Write a paragraph or two comparing the Java interface to the C/UNIX interface. Include these paragraphs with your code.
Please staple all pages together and write your name, and the
fact that this is Homework 3, in the upper right hand corner of
the page.