Code example for Socket

Methods: setSoLingersetSoTimeoutsetTcpNoDelay

0
        } 
        if (params == null) {
            throw new IllegalArgumentException("HTTP parameters may not be null");
        } 
        assertNotOpen(); 
        socket.setTcpNoDelay(HttpConnectionParams.getTcpNoDelay(params));
        socket.setSoTimeout(HttpConnectionParams.getSoTimeout(params));
 
        int linger = HttpConnectionParams.getLinger(params);
        if (linger >= 0) {
            socket.setSoLinger(linger > 0, linger);
        } 
        super.bind(socket, params);
    } 
 
    public String toString() {
        StringBuffer buffer = new StringBuffer();
        buffer.append("[");
        if (isOpen()) {
            buffer.append(getRemotePort());
Connect your IDE to all the code out there  Get Codota for Java