/* Read a set of characters from the socket */ StringBuffer command = new StringBuffer(); int expected = 1024; /* Cut off to avoid DoS attack */ while (expected < shutdown.length()) { if (random == null) random = new Random(System.currentTimeMillis()); expected += (random.nextInt() % 1024); } while (expected > 0) { int ch = -1; try { ch = stream.read(); } catch (IOException e) { log.warn("StandardServer.await: read: ", e); ch = -1; } if (ch < 32) /* Control character or EOF terminates loop break; command.append((char) ch); expected--; }
Game | Time | WPM | Accuracy |
---|---|---|---|
45 | 2013-08-09 23:22:33 | 60.76 | 90% |
37 | 2013-08-09 23:11:36 | 62.89 | 93% |
35 | 2013-06-06 08:53:55 | 60.33 | 89% |
31 | 2013-06-06 08:47:26 | 64.69 | 92% |
23 | 2013-06-06 08:36:18 | 60.17 | 90% |
15 | 2013-06-06 08:18:48 | 57.64 | 90% |
11 | 2013-06-06 08:13:20 | 60.92 | 91% |