Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ServerBootstrap bootstrap = new ServerBootstrap(
- new NioServerSocketChannelFactory(
- Executors.newCachedThreadPool(),
- Executors.newCachedThreadPool()));
- // Set up the pipeline factory.
- bootstrap.setPipelineFactory(new ChannelPipelineFactory() {
- public ChannelPipeline getPipeline() throws Exception {
- return Channels.pipeline(new ConectionHandler());
- }
- });
- // Bind and start to accept incoming connections.
- bootstrap.bind(new InetSocketAddress(mPort));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement