51黑料 v2.0版本的 MD5 值为:cc00ad70c70d95f274d15d4654c16262
以下内容为反编译后的 l.java 源代码,内容仅作参考
package g.e.a;
import android.text.TextUtils;
import java.io.OutputStream;
import java.net.Socket;
import java.util.Arrays;
import java.util.Locale;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class l {
public final ExecutorService a = Executors.newSingleThreadExecutor();
public final String b;
public final int c;
public class b implements Callable<Boolean> {
public b(a aVar) {
}
@Override
public Boolean call() {
boolean z;
i iVar = new i(l.this.a(), new g.e.a.t.b(), new g.e.a.s.a());
try {
try {
byte[] bytes = "ping ok".getBytes();
iVar.a(0L);
byte[] bArr = new byte[bytes.length];
iVar.read(bArr);
z = Arrays.equals(bytes, bArr);
String str = "Ping response: `" + new String(bArr) + "`, pinged? " + z;
if (str != null) {
TextUtils.isEmpty(str);
}
} catch (n e2) {
f.a("Error reading ping response", e2);
z = false;
}
iVar.close();
return Boolean.valueOf(z);
} catch (Throwable th) {
iVar.close();
throw th;
}
}
}
public l(String str, int i2) {
this.b = str;
this.c = i2;
}
public final String a() {
return String.format(Locale.US, "http://%s:%d/%s", this.b, Integer.valueOf(this.c), "ping");
}
public void b(Socket socket) {
OutputStream outputStream = socket.getOutputStream();
outputStream.write("HTTP/1.1 200 OK\n\n".getBytes());
outputStream.write("ping ok".getBytes());
}
}