You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by Jason Weinstein <ja...@oracle.com> on 2011/04/02 20:23:09 UTC

Decoder Question

In the example sumup

package org.apache.mina.example.sumup.codec;


The decoder has member variables

type, sequence, readHeader


Is it not the case that if the incoming message is fragmented that the 
decoder's member variables will be out of sync with the IoSession it is 
presented with??

Thanks

Re: Decoder Question

Posted by Jason Weinstein <ja...@oracle.com>.
Actually i figured this one out.

DemuxingCodecFactory appears to maintain the relationship between the 
IoSession and the Decoder instance which allows for decoder to have 
member variables

On 4/2/2011 11:23 AM, Jason Weinstein wrote:
> In the example sumup
>
> package org.apache.mina.example.sumup.codec;
>
>
> The decoder has member variables
>
> type, sequence, readHeader
>
>
> Is it not the case that if the incoming message is fragmented that the 
> decoder's member variables will be out of sync with the IoSession it 
> is presented with??
>
> Thanks