Hi,
sorry for the inconvenience :)
Maybe I'm wrong, but shouldn't contain the method <code>decodable</code>
a line, which set's the boolean <code>readHeader</code> to true?
// Return OK if type and bodyLength matches.
if( type == in.getShort() )
{
--> readHeader = true; <--
return MessageDecoderResult.OK;
}
An additional question at this point: Under which circumstances it can
be happen, that the header won't be read and the decoder starts
nevertheless the decoding? Sorry, I can't imagine ... could you explain
it please with some words?
public MessageDecoderResult decode( ... ) throws Exception
{
// Try to skip header if not read.
if( !readHeader )
{
in.getShort(); // Skip 'type'.
sequence = in.getInt(); // Get 'sequence'.
readHeader = true;
}
Regards
Michael