if (!oaddr.isPresent()) {
System.out.println("No suitable interface found. Exiting."); return;
}
Inet6Address dest = oaddr.get();
System.out.println("Using " + dest);
try (ServerSocket ss = new ServerSocket(0)) { int port = ss.getLocalPort();
B6558853 test = new B6558853(dest, port); Threadthread = newThread(test); thread.start();
Socket s = ss.accept();
InetAddress a = s.getInetAddress();
OutputStream out = s.getOutputStream();
out.write(1);
out.close(); if (!(a instanceof Inet6Address) || a.getHostAddress().indexOf("%") == -1) { // No Scope found in the address String thrownew RuntimeException("Wrong address: " + a.getHostAddress());
}
}
}
public B6558853(InetAddress a, int port) {
addr = a; this.port = port;
}
publicvoid run() { try {
Socket s = new Socket(addr, port);
InputStream in = s.getInputStream(); int i = in.read();
in.close();
} catch (IOException iOException) {
}
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-09-29)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.