* Creates client that connect to server on specified host and port.
* @param host the host where server listens on
* @param port the port that server listens on
*/
public NettyClient(LocalHost localHost, String host, int port, ConnectListener connectListener) {
workerGroup = new NioEventLoopGroup();
bootstrap = new Bootstrap();
bootstrap.group(workerGroup)
.channel(NioSocketChannel.class)
.handler(new NettyChannelInitializer(localHost, connectListener))