NetworkCatcherConnection(PeerInfo server) throws IOException {
logger.info("Connecting to {}", server);
this.server = server;
PeerInfo client = new PeerInfo("clientHostname", 9999);
bootstrap = new DuplexTcpClientBootstrap(
client,
new NioClientSocketChannelFactory(
Executors.newCachedThreadPool(),
Executors.newCachedThreadPool()));
bootstrap.setCompression(false);