Executors.newCachedThreadPool(new DaemonThreadFactory("SocketMaster")),
Executors.newCachedThreadPool(new DaemonThreadFactory("SocketSlave")));
netty = new ServerBootstrap(channelFactory);
// Set up the event pipeline factory.
netty.setPipelineFactory(new NettyHttpPipelineFactory(inputPipeline, openChannels));
// Bind and start to accept incoming connections.
openChannels.add(netty.bind(new InetSocketAddress(host, port)));
}