Already have client/server codes in java. I AM ATTACHING THE DESCRIPTION AND THE CODES IN A ZIP FILE.
Modify the chatClientand chatServerprograms to make them more like a “real?? chat application, instead of the server simply just sending the client’s message right back.
1) When the client connects to the server, the server should send a “greeting?? to the client, identifying the client by their IP address. This initial message will initiate communication between the client and the server.
2) The client will display the message from the server and then prompt the user to enter a message to send back to the server.
3) The server will display the message from the client and then prompt the user to enter a message to send back to the client.
4) This is will continue until either user types the “END?? command. Both the client and the server will wait until they receive a message before prompting the user to enter the next message. The “END?? command will terminate both the client and the server application.
5) The client application also has two more commands. If the user of the client application types “STATS,?? the server application sends back a count of the number of characters and messages (not including the special commands) back to the client as its next message.
If the user of the client application types “HISTORY,?? the server application will send back every message exchanged between the server and the client.
## Deliverables
Class and Java files
## Platform
JAVA