Homework #2 -- Due October 12

Rewrite the client of Homework 1 using UDP.

The packet format is unchanged. However, there is one change in the way the ``connection'' is initiated. The server will have one rendez-vous port. The number of this port will be 7000 plus the user-id of the person starting the server. The client starts the game by sending a message containing the string


to this port. The server will respond by sending the string

    BALANCE 1000000

from a port number that should be used for the remainder of the session.

By 1 October, a UDP server following this protocol will be running at UDP port number 7295 on penrose.cs.unca.edu.

Back to the Handout index
Return to Dean Brock's home page
UNCA CSCI logo Return to the UNCA Computer Science home page