Java Code

Comment on this code:


while (gotPassword == false)
{
  checkConnection(telnetClient);
  line=TelnetUtil.readUntilFtpPrompt(in);
  if (line.toString().toLowerCase().indexOf(”password:”) != -1)
  {
    gotPassword= true;
  }
  System.err.println(host+”: failed to get ‘password:’ prompt”);
  throw new Exception(host+”: Failed to get password prompt”+line);
}

Leave a Reply