B
bob smith
Is there any way to specify the connection timeout for a java.net.Socket?
I might want something like this to throw a ConnectException within 10 seconds:
Socket socket = new Socket(ip_address, 80);
Thanks.
I might want something like this to throw a ConnectException within 10 seconds:
Socket socket = new Socket(ip_address, 80);
Thanks.