src/main/java/pityoulish/sockets/server/SimplisticSocketHandler.java
public synchronized void startup(int port, int backlog)
    throws Exception
  {
    if (handlerThread != null)
       throw new IllegalStateException("already started");

    initServerSocket(port, backlog);

    handlerThread = new Thread(this);
    handlerThread.setDaemon(true);
    handlerThread.start();
  }
/**
   * Creates a socket and starts a thread servicing it.
   *
   * @param port        the port number, or 0 for some free port
   * @param backlog     the length of the backlog,
   *                    0 or negative for the default length
   *
   * @throws Exception  in case of a problem
   */
Creates a socket and starts a thread servicing it.
@param port        the port number, or 0 for some free port
@param backlog     the length of the backlog,
0 or negative for the default length

@throws Exception  in case of a problem
Creates a socket and starts a thread servicing it . @param port the port number or 0 for some free port @param backlog the length of the backlog 0 or negative for the default length @throws Exception in case of a problem
public synchronized void startup(int port, int backlog)
    throws Exception
  {
    if (handlerThread != null)
       throw new IllegalStateException("already started");
    initServerSocket(port, backlog);
    handlerThread = new Thread(this);
    handlerThread.setDaemon(true);
    handlerThread.start();
  }
public synchronized void startup ( int port , int backlog ) throws Exception { if ( handlerThread != null ) throw new IllegalStateException ( "already started" ) ; initServerSocket ( port , backlog ) ; handlerThread = new Thread ( this ) ; handlerThread . setDaemon ( true ) ; handlerThread . start ( ) ; }
Creates a socket and starts a thread servicing it.
Creates a socket and starts a thread servicing it .