ReplayDecoder and LITTLE_ENDIANness
UweH
uwe.hehn.external at eads.com
Thu Apr 15 07:27:40 EDT 2010
Hi,
I'm trying to create a server which accepts connections and non-fixed-length
messages from LITTLE_ENDIAN clients.
First byte in message gives the endianness. I've tried to write a
ReplayDecoder that reads endianness, converts the ChannelBuffer to a
BIG_ENDIAN-buffer and hands it over to the next decoder.
Unfortunately, this doesnt work; apparently the next decoder has its own
buffer that it keeps track of.
Decoding the complete message in one ReplayDecoder doesnt work so far
either. I've read the first byte (endianness) successfull and stored it in a
field. In the next state, I'll convert the channelbuffer before I read, but
I get a IndexOutOfBoundsException.
I'm pretty much out of ideas now, would somebody be so kind and point me to
the right direction?
Thx,
--
View this message in context: http://n2.nabble.com/ReplayDecoder-and-LITTLE-ENDIANness-tp4906895p4906895.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list