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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started