Im sorry. I said the question in a different way I should of. I already knew they were classes. I need to know there purpose. I went to that page and it was not found. I recieved an e-mail(as I signed up for it) from tech republic wich is where I copied from for the above paragraph. The message I recieved is as follows:
Handling connectivity timeouts with Java, part 2
Yesterday we exposed the problem of network delays between a client and server over the Internet, and today we'll look ata solution to this problem.
JDK 1.1 and above provides a socket option called SO_TIMEOUT. It allows the developer to specify a period of time that, if exceeded in a network delay situation, causes a java.io.InterruptedIOException to be thrown. Once caught, you can then handle the situation however you choose.
The value for SO_TIMEOUT is set by using the setSoTimeout() method, supported by java.net.Socket, java.net.DatagramSocket, and java.net.ServerSocket. The setSoTimeout method accepts an int, which is the amount of time in milliseconds allowed before a timeout is encountered (for example, a value of 2000 equals two seconds).
When the SO_TIMEOUT option is set, any blocking operation will cause this exception to be thrown, effectively handling any case of timeout that's encountered. Consider the following use of setSoTimeout:
mySocket.setSoTimeout(10000);
This line of code will cause the java.io.InterruptedIOException to be thrown after 10 seconds of waiting for receipt of packets from the client (or server). From there, the thread can be killed, ending the connection (and sending a graceful error message). Next time we'll look at a bit of sample code to demonstrate this.