174175176177178179180181182183184
if (readBytes == -1) { throw new EOFException("Remote socket closed!"); } readBuffer.flip(); } boolean complete = packet.readFrom(readBuffer); if (complete) { if (readBuffer.hasRemaining()) { readFromSocket = false; } else { readBuffer.compact();