ChannelServerConfiguration c = new ChannelServerConfiguration();
c.bindings(bindings);
c.ports(new Ports(PORT, PORT));
c.pipelineFilter(new MyPipeLine());
final EventLoopGroup bossGroup = new NioEventLoopGroup(0,
new DefaultThreadFactory(ConnectionBean.THREAD_NAME + "boss - "));
workerGroup = new NioEventLoopGroup(0,
new DefaultThreadFactory(ConnectionBean.THREAD_NAME + "worker-server - "));
cs = new ChannelServer(bossGroup, workerGroup, c, null, null, null);
cs.startupTCP(new InetSocketAddress("127.0.0.1", 7070), new ChannelServerConfiguration());
cs.startupUDP(new InetSocketAddress("127.0.0.1", 7070), new ChannelServerConfiguration(), false);