[email protected] a écrit :
Dears,I'm writing my first codec for a peer MINA 2.0.0 system for communication and I have some problem...
Your decoder is not good. It just assumes that if the remaining bytes is > 12, the it has received all what it needs to decode a full Object. It may not be the case, as you may receive the message byte by byte.
If you don't have a clue about the Object size, then you'll have to add it to the message.
