long waited = System.currentTimeMillis() - timeWritten;
// this sequence should complete fairly quickly and if it // takes something resembling the SoTimeout value then // we are probably incorrectly blocking and not waking up if (waited > 2000) { thrownew Exception("shouldn't take " + waited + " to complete");
}
}
publicvoid run() { try { byte[] b = newbyte[12];
Socket s = new Socket(addr, port);
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.