src/main/java/pityoulish/sockets/server/SimplisticSocketHandler.java
public synchronized void shutdown()
    throws Exception
  {
    Thread t = handlerThread;
    handlerThread = null; // tell thread to die
    if (t != null)
       t.interrupt();

    if (srvSocket != null)
       srvSocket.close();
  }
/**
   * Shuts down the thread and socket.
   *
   * @throws Exception  in case of a problem
   */
Shuts down the thread and socket.
@throws Exception  in case of a problem
Shuts down the thread and socket . @throws Exception in case of a problem
public synchronized void shutdown()
    throws Exception
  {
    Thread t = handlerThread;
    handlerThread = null; 
    if (t != null)
       t.interrupt();
    if (srvSocket != null)
       srvSocket.close();
  }
public synchronized void shutdown ( ) throws Exception { Thread t = handlerThread ; handlerThread = null ; if ( t != null ) t . interrupt ( ) ; if ( srvSocket != null ) srvSocket . close ( ) ; }
Shuts down the thread and socket.
Shuts down the thread and socket .
// tell thread to die