if (number != (Integer) connection.getAttachment()) {
System.out.println("error in number " + number + ":" + (Integer) connection.getAttachment());
}
connection.setAttachment(number + 1);
GameDownBuffer writeBuffer = GameDownBuffer.allocat(20, 1000);
writeBuffer.putInt(number + 1);
writeBuffer.put(new byte[996]);
connection.sendGameDownBuffer(writeBuffer);
if (connection.isKilled())
System.out.println("Number = " + number);
if (number >= 20000) {
connection.kill();