Ejemplo n.º 1
0
  /**
   * Start
   *
   * @exception Throwable Thrown if an error occurs
   */
  public void start() throws Throwable {
    if (eis != null) eis.stop();

    eis = new EISServer(hostName, port, maxConnections);
    eis.start();

    Thread t = new Thread(eis);
    t.start();
  }
Ejemplo n.º 2
0
  /**
   * Stop
   *
   * @exception Throwable Thrown if an error occurs
   */
  public void stop() throws Throwable {
    if (eis != null) eis.stop();

    eis = null;
  }