o complete the coding for the client and then run the server program in one command window and the client program in each of two further command windows (so that there are two clients communicating with the server at the same time).

o complete the coding for the client and then run the server program in one command window and the client program in each of two further command windows (so that there are two clients communicating with the server at the same time).

[ad_1]

This exercise converts the above files into a simple email server and email

 

client respectively. The server conversion has been done for you and is

contained in file EmailServer.java, a printed version of which appears on the

following pages for ease of reference. Some of the code for the client has also

been provided for you and is held in file EmailClient.java, a printed version

of which is also provided. You are to complete the coding for the client and

then run the server program in one command window and the client program

in each of two further command windows (so that there are two clients

communicating with the server at the same time). The details of this

simplified client-server application are given below.

• The server recognises only two users, called ‘Dave’ and ‘Karen’.

• Each of the above users has a message box on the server that can

accept a maximum of 10 messages.

• Each user may either send a one-line message to the other or read

his/her own messages.

• A count is kept of the number of messages in each mailbox. As

another message is received, the appropriate count is incremented (if

the maximum has not been reached). When messages are read, the

appropriate count is reduced to zero.

• When sending a message, the client sends three things: the user’s

name, the word ‘send’ and the message itself.

• When requesting reading of mail, the client sends two things: the

user’s name and the word ‘read’.

• As each message is received by the server, it is added to the

appropriate mailbox (if there is room). If the mailbox is full, the

message is ignored.

• When a read request is received, the server first sends an integer

indicating the number of messages (possibly 0) that will be sent and

then transmits the messages themselves (after which it reduces the

appropriate message count to 0).

• Each user is to be allowed to ‘send’ and/or ‘read’ as many times as

he/she wishes, until he/she decides to quit.

• When the user selects the ‘quit’ option, the client sends two things: the

user’s name and the word ‘quit’.

 

find the cost of your paper

The post o complete the coding for the client and then run the server program in one command window and the client program in each of two further command windows (so that there are two clients communicating with the server at the same time). appeared first on Best Custom Essay Writing Services | EssayBureau.com.

[Button id=”1″]

"96% of our customers have reported a 90% and above score. You might want to place an order with us."

Essay Writing Service
Affordable prices

You might be focused on looking for a cheap essay writing service instead of searching for the perfect combination of quality and affordable rates. You need to be aware that a cheap essay does not mean a good essay, as qualified authors estimate their knowledge realistically. At the same time, it is all about balance. We are proud to offer rates among the best on the market and believe every student must have access to effective writing assistance for a cost that he or she finds affordable.

Caring support 24/7

If you need a cheap paper writing service, note that we combine affordable rates with excellent customer support. Our experienced support managers professionally resolve issues that might appear during your collaboration with our service. Apply to them with questions about orders, rates, payments, and more. Contact our managers via our website or email.

Non-plagiarized papers

“Please, write my paper, making it 100% unique.” We understand how vital it is for students to be sure their paper is original and written from scratch. To us, the reputation of a reliable service that offers non-plagiarized texts is vital. We stop collaborating with authors who get caught in plagiarism to avoid confusion. Besides, our customers’ satisfaction rate says it all.

© 2022 Homeworkcrew.com provides writing and research services for limited use only. All the materials from our website should be used with proper references and in accordance with Terms & Conditions.

Scroll to Top