Hi Is there a way to bypass a decoder in the chain? For example, I have Decoder1 and Decoder2 registered in my DemuxingProtocolCodecFactory. My understanding is if I write to the ProtocolDecoderOutput then it will be forwarded to the next decoder in the chain, in that case Decoder2. What if I write using the IoSession.write(Object) in Decoder1 and just return need more data afterwards, this should bypass Decoder2, shouldn't it? Is the ByteBuffer received by the 2nd decoder a new ByteBuffer?
Also when writing to the IoSession, it will then go through the chain of encoders, right? Is there a way to bypass the encoders? Or should I implement some code in my encoders to just forward to the next encoder without doing any processing? I assume that if message1 and message2 are read by IoSession, message1 will go through all the filters before message2 so the order of arrival is preserved. Am I correct? I've started using a CumulativeProtocolDecoder (works well) but I want to split some processing into 2 decoders so I looked at the Demuxing stuff but obviously I can't use my Cumulative decoder as is and have to re-implement one according to the MessageDecoder interface. Thx. -- Frederic Soulier <[EMAIL PROTECTED]> OpenPGP key available on http://www.keyserver.net 1024D/BA6700ED 49A6 8E8E 4230 8D41 1ADE B649 3203 1DD2 BA67 00ED
signature.asc
Description: This is a digitally signed message part
