밤친구 v4.7.3版本的 MD5 值为:a58175795b36d9d722726efa7eb4c52a
以下内容为反编译后的 n.java 源代码,内容仅作参考
package w;
import java.io.IOException;
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 final class n {
public final ExecutorService f17437a = Executors.newSingleThreadExecutor();
public final String f17438b = "127.0.0.1";
public final int f17439c;
public class a implements Callable<Boolean> {
public a() {
}
@Override
public final Boolean call() throws Exception {
boolean z10;
k kVar = new k(n.this.a(), new cg.c(), new le.c());
try {
try {
byte[] bytes = "ping ok".getBytes();
kVar.a(0L);
byte[] bArr = new byte[bytes.length];
kVar.read(bArr);
z10 = Arrays.equals(bytes, bArr);
cl.d.O0("Ping response: `" + new String(bArr) + "`, pinged? " + z10);
} catch (p e10) {
cl.d.N0("Error reading ping response", e10);
kVar.close();
z10 = false;
}
return Boolean.valueOf(z10);
} finally {
kVar.close();
}
}
}
public n(int i) {
this.f17439c = i;
}
public static void b(Socket socket) throws IOException {
OutputStream outputStream = socket.getOutputStream();
outputStream.write("HTTP/1.1 200 OK\n\n".getBytes());
outputStream.write("ping ok".getBytes());
}
public final String a() {
return String.format(Locale.US, "http://%s:%d/%s", this.f17438b, Integer.valueOf(this.f17439c), "ping");
}
}