Code example for Socket

Methods: setReuseAddress

0
    public int getTrafficClass() throws SocketException { 
        return s.getTrafficClass();
    } 
 
    public void setReuseAddress(boolean on) throws SocketException {
        s.setReuseAddress(on);
    } 
 
    public boolean getReuseAddress() throws SocketException { 
        return s.getReuseAddress();
    } 
 
    public void close() throws IOException { 
        s.close();
    } 
 
    public void shutdownInput() throws IOException { 
        s.shutdownInput();
    } 
 
    public void shutdownOutput() throws IOException {