question archive How do I get this to show client1, client2, or client3? Is it the same as coding for TCP? We are using IntelliJ Idea, so to run multiple clients we are just enabling parallel threads then hitting run again

How do I get this to show client1, client2, or client3? Is it the same as coding for TCP? We are using IntelliJ Idea, so to run multiple clients we are just enabling parallel threads then hitting run again

Subject:Computer SciencePrice: Bought3

How do I get this to show client1, client2, or client3? Is it the same as coding for TCP? We are using IntelliJ Idea, so to run multiple clients we are just enabling parallel threads then hitting run again. Is this what I need to do

 

This is the Java assignment:

 

write a multithreaded UDP client server application with following requirements:

1. write a multithreaded server, that handles three clients (client1, client2, client3).

Input is given from your client application and server returns thrice of the value entered by the user. All client's application asks user for input until -99 is clicked.

2. When server application is started it should print "Server started ...." (shown below)

3. When client is started it should print client number. For example " >> Client No:1 started!" (shown below)

4. Client's application takes the value and prints that value in server console (shown below) 5. Server returns thrice of the value and prints that value in client's console (shown below). 6. When new client is started, server has to print IP address and port number of each client. 

 

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE