Connection timeout

Hello,

I know there is a way to set a way to setread timeout (sockect.setSoTimeout() called before sockect.getInputStream() and inpustream.read() ), but I would like to know if there were a Java way to setconnection timeout (by any mean : API, properties, system/JVM properties) ?

[309 byte] By [Kilwcha] at [2007-11-27 8:49:48]
# 1
Socket s = new Socket();SocketAddress sa = new InetSocketAddress(...);s.connect(sa, timeout);
ejpa at 2007-7-12 20:59:38 > top of Java-index,Core,Core APIs...