134135136137138139140141142143144
buffer.release(); throw e; } if (readCount > 0) { buffer.flip(); getSessionFilterChain(false).packetReceived( new DefaultPacket(buffer, address)); } if (n < 0) // Connection closed throw new ClosedChannelException();
5152535455565758596061
} public Buffer toBuffer() { Buffer result = BufferFactory.allocate(buffer.position()); buffer.get(0, result); return result.flip(); } public void release() { buffer.release(); }
99100101102103104105106107108109
buffer.release(); throw e; } if (readCount > 0) { buffer.flip(); getSessionFilterChain(false).packetReceived( new DefaultPacket(buffer)); } if (n < 0) // Connection closed throw new ClosedChannelException();