A daytime server usually runs on port 13, and you should use this as the default. However, running a server on port 13 requires root (superuser) privileges, and so you should allow another port to be specified on the command line when your server is started. For example, to run your daytime server on port 1313, you would type
java UDPDaytimeServer 1313
If no port is specified on the command line, the default port 13 is used.
To make the assignment a little more interesting, we incorporate an additional feature. In order for the client to receive the current date and time, the client must send the query
Please send the date and time.
In this case, your server returns the current date and time to the client. If the client sends any other query, your server responds by sending
I don't understand your request.
contst10@cs.gettysburg.edu
The e-mail message itself must contain the Honor Pledge and the full names of the people submitting the assignment. Only one submission should be made for each team. Once again, you should submit only the UDP daytime server and not any UDP daytime client you wrote to test your server.