YourPorn v1.2.4版本的 MD5 值为:25af0cc492747d0d721ef41054943bde
以下内容为反编译后的 Ccatch.java 源代码,内容仅作参考
package w2;
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;
import k8.Cpackage;
public class Ccatch {
public final ExecutorService f9669do = Executors.newSingleThreadExecutor();
public final int f9670for;
public final String f9671if;
public class Cif implements Callable<Boolean> {
public Cif(Cdo cdo) {
}
@Override
public Boolean call() {
boolean z9;
Cgoto cgoto = new Cgoto(Ccatch.this.m4086do(), new i.Cdo(), new Cpackage(), null, null);
try {
try {
byte[] bytes = "ping ok".getBytes();
cgoto.mo4100do(0L);
byte[] bArr = new byte[bytes.length];
cgoto.read(bArr);
z9 = Arrays.equals(bytes, bArr);
b.Cdo.m581throws("Ping response: `" + new String(bArr) + "`, pinged? " + z9);
} catch (Cconst e10) {
b.Cdo.m579switch("Error reading ping response", e10);
z9 = false;
}
cgoto.close();
return Boolean.valueOf(z9);
} catch (Throwable th) {
cgoto.close();
throw th;
}
}
}
public Ccatch(String str, int i10) {
this.f9671if = str;
this.f9670for = i10;
}
public final String m4086do() {
return String.format(Locale.US, "http://%s:%d/%s", this.f9671if, Integer.valueOf(this.f9670for), "ping");
}
public void m4087if(Socket socket) {
OutputStream outputStream = socket.getOutputStream();
outputStream.write("HTTP/1.1 200 OK\n\n".getBytes());
outputStream.write("ping ok".getBytes());
}
}