Use the program to make a client program that repeatedly reads a line of input from the user, sends it to the server in a UDP datagram message, then receives a message from the server. The client sets a timeout on its socket so that it can inform the user when the server does not reply. Test this client program
What will be an ideal response?
```
DatagramSocket aSocket = new DatagramSocket();
aSocket.setSoTimeout(3000);// in milliseconds while (// not eof) {
try{
// get user’s input and put in request
..... aSocket.send(request);
........ aSocket.receive(reply);
}catch (InterruptedIOException e){System.out.println("server not responding”);}
```
You might also like to view...
The aim of a software process at the ____________, or Level 3, is to create an environment where software managers and technical personnel can do their jobs as effectively as possible.
Fill in the blank(s) with the appropriate word(s).
To make a layout container the ________ node in a scene graph, select the layout container, then select Scene Builder’s Edit > Trim Document to Selection menu item.
a. base b. root c. origin d. start
Explain how to share files over a network.
What will be an ideal response?
_________________________ detect movement within a confined space and are either active or passive.
Fill in the blank(s) with the appropriate word(s).