All the sources codes "Yet it works !"page 10
Java
May 02, 2013 pm31 12:25
#58
catch (SocketTimeoutException e)
{
listeAffichage = null;
return_code = 0;
}
catch (ConnectTimeoutException e)
{
listeAffichage = null;
return_code = 0;
}
catch (UnknownHostException e)
{
listeAffichage = null;
return_code = 0;
}
Java
April 30, 2013 pm30 15:44
#56
int code = thread.getValue();
switch (code)
{
case -1: return_code = -1; break; //error
case 0: return_code = 0; break; //network failure
case 1: return_code = 1; break; //ok
case 2: return_code = 2; break; //unknown uniqID form PHP
}
return return_code;