net.handle.hdllib
Class TimedConnection

java.lang.Object
  extended by net.handle.hdllib.TimedConnection

public class TimedConnection
extends java.lang.Object

Factory for socket connections which time out if not connected after a specified delay. The underlying java.net.Socket object actually sticks around until the native connect operation times out(takes a LONG time), or when the Java VM exits(because the connect occurs in a daemon thread).


Constructor Summary
TimedConnection()
           
 
Method Summary
static java.net.Socket getSocket(java.net.InetAddress addr, int port, int delay)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimedConnection

public TimedConnection()
Method Detail

getSocket

public static java.net.Socket getSocket(java.net.InetAddress addr,
                                        int port,
                                        int delay)
                                 throws java.io.InterruptedIOException,
                                        java.io.IOException
Throws:
java.io.InterruptedIOException
java.io.IOException