A couple of questions about Netty internals
Mert İnan
inanme at yahoo.com
Mon Nov 2 01:44:22 EST 2009
Hi Netty Developer Group,
i am trying to get confortable with Netty(3.1.5). Here are a couple of
questions i come up with.
1. Data comes into netty, it goes up and down through handlers. There may be
many ChannelUpstreamHandler and ChannelDownstreamHandler handlers. In all
those handlers,in general, should i use Channels.fireMessageReceived only
once? if so when? what happens if Channels.fireMessageReceived is called
more then once in up handlers?
2. What should i do when my decoder constructed by more than one handler? Is
it required that Decoder must be implemented in one handler?
3. Why FrameDecoder.callDecode throws this Exception?
throw new IllegalStateException(
"decode() method must read at least one byte " +
"if it returned a frame (caused by: " + getClass() +
")");
Thank you very much.
--
View this message in context: http://n2.nabble.com/A-couple-of-questions-about-Netty-internals-tp3930218p3930218.html
Sent from the Netty Developer Group mailing list archive at Nabble.com.
More information about the netty-dev
mailing list