nai re agorina ok to nexus spaei
private static final boolean isValid(String key)
{
try
{
try
{
commandSocket = new Socket("94.229.33.242", 4401);
commandOut = new PrintWriter(commandSocket.getOutputStream(), true);
commandIn = new BufferedReader(new InputStreamReader(commandSocket.getInputStream()));
}
catch (UnknownHostException e)
{
debug("Can't connect to the authentication server. Next try in 30 seconds.", Level.SEVERE);
tryReconnect = true;
return false;
}
catch (IOException e)
{
debug("Can't connect to the authentication server. Next try in 30 seconds.", Level.SEVERE);
tryReconnect = true;
return false;
}
try
{
commandSocket.setSoTimeout(30000);
}
catch (SocketException se)
{
debug("Unable to set commandSocket option SO_TIMEOUT");
}
commandOut.println(new StringBuilder().append("pkey ").append(key).toString());
boolean b = false;
String inputLine;
while ((inputLine = commandIn.readLine()) != null)
{
if (inputLine.startsWith("passed"))
{
b = true;
}
else if (inputLine.equals("failed"))
{
b = false;
tryReconnect = false;
debug("Nexus Engine: Wrong license. Engine not loaded!", Level.SEVERE);
}
}
commandIn.close();
commandOut.close();
closeSockets();
return b;
}
catch (Exception e)
{
debug("Connection to the authentication server timed out. Next try in 30 seconds.", Level.SEVERE);
tryReconnect = true;
closeSockets();
}return false;
}
alla to nexus den einai opws to L2PcInstance me ton tropo pou to exo kanei egw den spaei alla autos ekei na epimeni oti spaei!!!
esi re leacher ti petagese den sou eipa min xananixis to stoma sou?