Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!