bootstrap = new ServerBootstrap();
bootstrap.option(ChannelOption.SO_RCVBUF, 128 * 1024);
bootstrap.option(ChannelOption.TCP_NODELAY, true);
bootstrap.group(new NioEventLoopGroup(), new NioEventLoopGroup());
bootstrap.channel(NioServerSocketChannel.class);
bootstrap.localAddress(port);
bootstrap.childHandler(new ChannelInitializer<SocketChannel>() {
@Override
public void initChannel(SocketChannel channel) throws Exception {
channel.pipeline().addLast(new TestServerHandler());
};