Saint Mary University Java Network Worksheet
Description
Unformatted Attachment Preview
Download MultiEchoServer.java, MultiEchoClient.java, and ClientHandler.java from the
Brightspace Lecture notes under Table of Contents ? Module 3: The Application Layer ? Module
3-Part 5: Network Programming with Java. You will be making modifications to these programs.
The objective of this assignment is to implement a Chat Server application. A Chat Server connects
with multiple clients and broadcasts the messages received by a client to all the other clients.
ote:
The message must not be sent back to the client that sent this message.
You may assume that only one client enters the message at any given time.
Following are the specifications.
When a client joins, it is prompted with nter name: The name of the client is read from the
keyboard and sent to the server.
The server must recognize that this is the first message and record this name of the client. Then for
each subsequent message, the client is prompted with nter message (BYE to exit): hen the client enters a subsequent message, the server should retrieve the appropriate name
and display
Message from : message
This message should then be broadcast to all the other clients except the one that it is received
from. It should be displayed as
Message from : message on the
console of the other clients.
Sample test run is shown on the next page
What to submit:
Submit one zip file containing the following:
a)
Commented .java source codes.
d) One word/text/pdf document containing screenshots of one sample run of your program with several clients,
similar to the screenshot shown on the next page.
Ensure that your Name and Banner ID appears as comments on top of each of the source code files. Also ensure that your
Name and Banner ID appears on top of the word/text/pdf document.
Note: You must submit .java files so that the TAs are able to run your codes.
Late Submission Penalty: The assignment is due on Monday at 11.59 PM. Late submissions up to 5 hours
(4.59 AM on Tuesday) will be accepted without penalty. After that, there will be a 10% late penalty per day on
the mark obtained. For example, if you submit the assignment on Tuesday at 12 noon and your score is 8/10,
it will be reduced to 7.2/10. Submissions past five days after the grace submission time will not be accepted.
Purchase answer to see full
attachment
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."