Hi,<br><br>I am a day old to netty and still finding my way around. Looks like a really slick framework!<br><br>I am having a little trouble understanding the handler pipeline (yes, I have read the api docs for ChannelPipeline, ChannelHandler and ChannelEvent). To take a concrete example, the server pipeline in the example time server has the following pipeline:<br>
<br> ChannelPipeline p = pipeline();<br> 1. p.addLast("frameDecoder", new LengthFieldBasedFrameDecoder(1048576, 0, 4, 0, 4));<br> 2. p.addLast("protobufDecoder", new ProtobufDecoder(LocalTimeProtocol.Locations.getDefaultInstance()));<br>
<br> 3. p.addLast("frameEncoder", new LengthFieldPrepender(4));<br> 4. p.addLast("protobufEncoder", new ProtobufEncoder());<br><br> 5. p.addLast("handler", new LocalTimeServerHandler());<br>
return p;<br><br>For a given request, handlers are executed in the order 1,2,5,4,3, right? Thats the only order that makes sense.<br><br>But thats totally different from the order they are added to the pipeline in the code. <br>
<br>Utkarsh <br>