public marks

PUBLIC MARKS from sylvainulg with tags coding & java

07 June 2011 08:30

ServerSocket (Java Platform SE 6)

SO_REUSEADDR for Java -- how to avoid java.net.BindException (at the risk of odd TCP state) [code] ServerSocket x = new ServerSocket(); x.setReuseAddress(true); x.bind(new InetSocketAddress(port)); [/code]