Le 4/23/14 3:34 PM, Vladimir Kravets a écrit :
>>> Yep, I know this, but first decoder will get data in the ByteBuffer not
> in
>>> the IoBuffer... Should I perform such transformation before decoder
> will be
>>> called?
>> You have 2 decoders in the chain ?
> Yep, first one performs encryption/decryption of the traffic in case if its
> needed.
> In both cases input is ByteBuffer.

Ok, I see. Here, you would like to have a way to get the decryted data
stored in a cumulative buffer.

Why don't you put the decrypted data into a IoBuffer then ? You will
need to extend the IoBufferDecoder class instead of implementing a
ProtocolDecoder.

That will allow you to propagate a IoBuffer, and not a ByteBuffer.


-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com 

Reply via email to