Code example for Socket

Methods: getTrafficClass

0
    public void setTrafficClass(int tc) throws SocketException {
        s.setTrafficClass(tc);
    } 
 
    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();
    } 
 
Connect your IDE to all the code out there  Get Codota for Java