The Easy Network Benchmark

 

Your mission is to write a file transfer program.  The client will send a filename to the server.  The server will open that file, read it and send it back to the client.  The client will receive the file and show it to the screen.

 

Events

  1. The server starts.
  2. The server opens a server socket.
  3. The client starts.
  4. The client connects a client socket to the server.
  5. The client sends a filename to the server.
  6. The server opens the file
  7. The server sends the file data to the client
  8. The client receives the data and prints it to the screen.

 

Task

Points

Server opens a socket

5

Client opens a socket

5

Server and client transfer the filename

5

Server opens the file

5

Server and client exchange file data

5

Server and client can work with any size data (you must use a loop).

5

Every un-checked error

-2

Turned in before Saturday Sept 13th

5

Turned in after Tuesday Sept 16th

-5

You make a graph with data points at 0 bytes, 100 bytes, 10,000 bytes, and 1,000,000 bytes.

5

 

Notes:  You can find