ok
but i have a varible message length like the examples
[myAction]01[year]9999[len-url]35[URL]http://mina.apache.org/contact.html or
[myAction]01[year]9999[len-url]18[URL]http://www.cnn.com

so my stream is:
01999935http://mina.apache.org/contact.html01999918http://www.cnn.com




On Mon, May 25, 2009 at 11:18 AM, Emmanuel Lecharny <[email protected]>wrote:

> Again, this is because you assume that the buffer will contain all the data
> you want to read in it, whcih is not guaranteed bat the TCP protocol. You
> can perfectly receive the data byte by byte, each message containing only
> one byte of data.
>
> You have to deal with it in your decoder.
>
>
> --
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.iktek.com
>

Reply via email to