Sorry for too late response. :) On 2/9/07, Bogdan Jarcau <[EMAIL PROTECTED]> wrote: > Hi all, > > I am working on a protocol (TCP) that utilizes messages separated by an End > Of Message character (in this case \n). I use the decodable() method to > check if the message is complete and once it detects an EOM character it > will return true, decode() is called, and the messsage will be extracted > from the ByteBuffer. Now, assuming that I receive a message and the > connection dies out before it receives the EOM character, how could I > retrieve/salvage the data that still exists in the ByteBuffer? I could > technically store the data locally in a variable, but is there a better way > to access that data? > I am using Mina 1.01, and am using MessageDecoderAdapter.
You can override finishDecode() method. HTH, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6
