List of usage examples for java.net Socket getReuseAddress
public boolean getReuseAddress() throws SocketException
From source file:Main.java
public static void main(String[] args) throws Exception { Socket client = new Socket("google.com", 80); client.setReuseAddress(true);/*from ww w . jav a2 s . c o m*/ System.out.println(client.getReuseAddress()); client.close(); }