Iris/src/main/java/TcpServer.java
public synchronized void stop(){
        if( this.currentState == State.STARTED ){   // Only if already STARTED
            setState( State.STOPPING );             // Mark as STOPPING
            if( this.tcpServer != null ){           // 
                try{
                    this.tcpServer.close();
                } catch( IOException exc ){
                    LOGGER.log( 
                      Level.SEVERE,
                      "An error occurred while closing the TCP server. " +
                      "This may have left the server in an undefined state.",
                      exc );
                    fireExceptionNotification(exc);
                }
            }   // end if: not null
        }   // end if: already STARTED
    }
/**
     * Attempts to stop the server, if the server is in
     * the STARTED state, and returns immediately.
     * Be sure to listen for stop events to know if the server was
     * successfully stopped.
     * 
     * @see Listener
     */
Attempts to stop the server, if the server is in
the STARTED state, and returns immediately.
Be sure to listen for stop events to know if the server was
successfully stopped.

@see Listener
Attempts to stop the server if the server is in the STARTED state and returns immediately . Be sure to listen for stop events to know if the server was successfully stopped . @see Listener
public synchronized void stop(){
        if( this.currentState == State.STARTED ){   
            setState( State.STOPPING );             
            if( this.tcpServer != null ){           
                try{
                    this.tcpServer.close();
                } catch( IOException exc ){
                    LOGGER.log( 
                      Level.SEVERE,
                      "An error occurred while closing the TCP server. " +
                      "This may have left the server in an undefined state.",
                      exc );
                    fireExceptionNotification(exc);
                }
            }   end if: not null
        }   end if: already STARTED
    }
public synchronized void stop ( ) { if ( this . currentState == State . STARTED ) { setState ( State . STOPPING ) ; if ( this . tcpServer != null ) { try { this . tcpServer . close ( ) ; } catch ( IOException exc ) { LOGGER . log ( Level . SEVERE , "An error occurred while closing the TCP server. " + "This may have left the server in an undefined state." , exc ) ; fireExceptionNotification ( exc ) ; } } } }
Attempts to stop the server, if the server is in
 the STARTED state, and returns immediately.
Attempts to stop the server if the server is in the STARTED state and returns immediately .
// Only if already STARTED // Mark as STOPPING //  // end if: not null // end if: already STARTED