final ChannelFuture f = boot.connect(host, port).sync();
// Wait until the connection is closed.
f.channel().closeFuture().sync();
} finally {
// Shut down the event loop to terminate all threads.
boot.shutdown();
}
}
public static void main(final String[] args) throws Exception {
log.info("init");