Example sync between package-info.java

This commit is contained in:
Trustin Lee 2009-07-14 10:37:36 +00:00
parent cb1c079380
commit 5fa73d2af5

View File

@ -50,6 +50,8 @@ public class LocalEchoServerRegistration {
ServerBootstrap serverBootstrap = new ServerBootstrap(factory);
EchoHandler handler = new EchoHandler();
serverBootstrap.getPipeline().addLast("handler", handler);
// Note that "myLocalServer" is the endpoint which was specified in web.xml.
serverChannel = serverBootstrap.bind(new LocalAddress("myLocalServer"));
}