2014-04-23 17:40 GMT+03:00 Emmanuel Lécharny <[email protected]>:

> 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.
>

Indeed


> 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.

Yes, it's a good idea. Thanks, I will try...

Best Regards,
Vladimir

Reply via email to