acceptThread.setDaemon(true);
  ActiveModeDTP(InetAddress localhost, int port,                int connectionTimeout, int timeout)    throws IOException  {    completed = false;    inProgress = false;    server = new ServerSocket(port, 1, localhost);    if (timeout > 0)      {        server.setSoTimeout(timeout);      }    if (connectionTimeout <= 0)      {        connectionTimeout = 20000;      }    this.connectionTimeout = connectionTimeout;    acceptThread = new Thread(this, "ActiveModeDTP");    acceptThread.start();  }