Netty examples - code problems...

shedseven tim.cain at bjss.com
Fri Jun 18 05:28:11 EDT 2010


Hi There.

I'm new to Netty and I'm working through the example code to get a feel for
things, but I've hit a problem right at the start with the "echo" example.

Both EchoClient and EchoServer classes have one line highlighted as
erroneous in Eclipse something like...

        // Set up the pipeline factory.
        bootstrap.setPipelineFactory(new ChannelPipelineFactory() {
            public ChannelPipeline getPipeline() throws Exception {
                return Channels.pipeline(
                        new EchoClientHandler(firstMessageSize));
            }
        });

.. where the ".pipeline" has the squiggly red error underlining.

Looking at the class hierarchies, it appears that "EchoClientHandler" and
"ChannelPipeline " are not related, so the example code IS broken?


I find this hard to believe though - no-one else seems to be reporting
problems and you don't expect to find errors in code examples...

Am I just bei ng stupid, am I missing something here, can anyone shed any
light on what's going on...?

advTHANKSance.
-- 
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Netty-examples-code-problems-tp5194628p5194628.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list