CMSC 204 Sockets Lab

$30.00

Category: You will Instantly receive a download link for .zip solution file upon Payment || To Order Original Work Click Custom Order?

Description

5/5 - (3 votes)

Modify MessageClient so that it does something meaningful.

Design an Application Protocol

Client Request Server Response Description
1 (First) Sends message indicating that the first option was choosen Display “You have chosen the first option”
2 (Second) Sends message indicating that the second option was choosen Display “You have chosen the second option”
3 (Third) Sends message indicating that the third option was choosen Display “You have chosen the third option”
4 (Quit) None. (Close Sockset) Quit the connection
any other number Sends message indicating that the user selected an invalid option Display “Invalid choice”

You must have at least 3 client request commands besides QUIT. You may add as many as you need.

Modify MessageClient so that it repeats until the user puts in the menu item to QUIT.

Modify MessageServer so that it continues to read from the inputStream and returns the appropriate responses to the menu in the MessageClient based on your Application Protocol, until it receives the QUIT request from the client.

Upload your modified MessageClient.java, MessageServer.java and your Application Protocol (in a .doc or .docx file).