ERODD HOME Malone Home
CPSC 341 - TCP sockets Lab
Earl Rodd erodd@malone.edu Extension 8546 www.malone.edu/erodd

Overview

For this lab, you will modify the sample JAVA sockets client to add function. We are essentially programming the function we performed manually with telnet in the homework exercise. In particular, we want to:

JAVA review

Remember to compile and run JAVA (WINDOWS or LINUX):

Getting the starting program

The program sample to start with is in the file:

WINDOWS: T:\ERODD\TCPCLI.JAVA

LINUX: /home/square/tdrive/erodd/tcpcli.java

Things to change

To Turn In

Copy your program to the instructor tdrive.

Printed copy of your program with a handwritten notation of what host and URL you tested with.
Remember on LINUX print with:

   a2ps sockiii.java

Extra Challenge

The maximum grade without this extra is 95%. The maximum grade with this extra challenge is 120.

The extra challenge is: Write logic to read exactly as much data as the server sends. Hint: There is information in the HTTP header you need. Look at an Ethereal trace to find it.