Code example for Socket

Methods: isClosedisInputShutdownisOutputShutdown

0
    /* (non-Javadoc) 
     * @see org.mortbay.io.BufferIO#isClosed() 
     */ 
    public boolean isOpen() 
    { 
        return super.isOpen() && _socket!=null && !_socket.isClosed() && !_socket.isInputShutdown() && !_socket.isOutputShutdown();
    } 
 
    /* ------------------------------------------------------------ */ 
    /* 
     * @see org.eclipse.jetty.io.bio.StreamEndPoint#shutdownOutput() 
     */ 
    public void shutdownOutput() throws IOException 
    {     
        if (!_socket.isClosed() && !_socket.isOutputShutdown())
            _socket.shutdownOutput();
    } 
     
    /* ------------------------------------------------------------ */ 
    /* (non-Javadoc) 
Contextual code suggestions in your IDE  Get Codota for Java