buffer.flip(); // make buffer readable
reader.append(buffer.array(),0,count);
buffer.clear(); // make buffer empty
}
//check to see if any data is available
int pkgcnt = reader.execute();
if (log.isTraceEnabled()) {
log.trace("sending " + pkgcnt + " ack packages to " + channel.socket().getLocalPort() );
}
if (sendAck) {