Global Config: Little Endian
zx spectrum
webakaunt at gmail.com
Fri Oct 14 15:07:54 EDT 2011
1. What is the way to switch an "endian" on a decode / messageReceived?
class SomePacketDecoder(...) extends FrameDecoder {
override def decode( ctx: ChannelHandlerContext,
channel: Channel,
buf: ChannelBuffer ): AnyRef = {
buf.readableBytes // <<<===== how to ensure that this is read in
Little Endian? Would a FrameDecoder already "pre read" it in a Big Endian,
before it gets to this point?
}
2. Is there a way to set a Big/Little Endian setting globally for a Netty
client, so it is able to be easily reused when connected to different
servers?
Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20111014/e79d71c6/attachment.html
More information about the netty-users
mailing list