I'm at home now, so I'll have to wait and see if it really works for me, but it's very promising - looks like what I was looking for. Big thanks, Zohar.
On 4/1/06, peter royal <[EMAIL PROTECTED]> wrote: > > 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 > > > > >
