_logger.info("Attempting connection to " + address);
//Old mina style
// ioConnector.setHandler(new WriterHandler());
// ConnectFuture future = ioConnector.connect(address);
ConnectFuture future = ioConnector.connect(address, new WriterHandler());
// wait for connection to complete
future.join();
_logger.info("Connection completed");
// we call getSession which throws an IOException if there has been an error connecting
_session = future.getSession();
_chunkTimes = new long[_chunkCount];
Thread t = new Thread(this);
t.start();
t.join();