On Apr 1, 2006, at 4:05 PM, Zohar Amir wrote:
let's say that the client sent 3 messages together (single TCP send). In that case my CumulativeProtocolDecoder starts decoding and can actually produce 3 message objects, but once decode returns true, my IoHandler's messageReceived is invoked with only one of them. Is there a way to produce the 3 objects and make MINA invoke messageReceived repeatedly with all 3?

a CumulativeProtocolDecoder should only decode one message at a time. Decode one message, return true. If there is still data available, it will be called again, as many times as necessary as long as there is data and you return true. And then you will have discrete messageReceived invocations with each message that you have decoded.
-pete


--
[EMAIL PROTECTED] - http://fotap.org/~osi


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to