Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Client program & Server program in JAVA Multiple Clients ! client must accept 2 commnad line arguments : for hostname and int for port number

Client program & Server program in JAVA

Multiple Clients !

client must accept 2 commnad line arguments : for hostname and int for port number

client 1: sends message "HERE" to server

client 2: sends message "HERE" to server

both clients will wait for the server.... once repsonce is recieved - clinets will prompted to make a selection

output:

unix> hostame portnumber

wait for other client..

make a selection

prints selection

server must accept 2 commnad line arguments: for port number and number of runs(numOfrun)

server waits to hear from: client 1 and client 2: "HERE"

server will send the clients' a message to the clients : "START" - tells client to make selection

client response = read

output: - depends on the number of runs

univ> portnumber number of runs

client1: HERE

client2: HERE

START clinets run1

client1: selection

client2: selection

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Administrator Limited Edition

Authors: Martif Way

1st Edition

B0CGG89N8Z

More Books

Students also viewed these Databases questions

Question

What is the purpose of the Salary Structure Table?

Answered: 1 week ago

Question

What is the scope and use of a Job Family Table?

Answered: 1 week ago