Code example for ServerSocket

Methods: closeisClosed

0
     *  
     * @see java.nio.channels.spi.AbstractSelectableChannel#implCloseSelectableChannel() 
     */ 
    synchronized protected void implCloseSelectableChannel() throws IOException { 
        status = SERVER_STATUS_CLOSED;
        if (!socket.isClosed()) {
            socket.close();
        } 
    } 
 
    /* 
     * Gets the FileDescriptor 
     */ 
    public FileDescriptor getFD() {
        return fd;
    } 
 
    /* 
     * The adapter class of ServerSocket. 
     */