/**
* Creates a connection to the given host and port
*/
public Channel buildClient() {
PipelineFactory pipelinefactory = new ClientPipelineFactory(
handlers, encoder, decoder);
ChannelFactory nioServer = new NioClientSocketChannelFactory(
Executors.newCachedThreadPool(),
Executors.newCachedThreadPool());