ConnectFuture future = _socketConnector.connect(new InetSocketAddress(destination, port), this, cfg);
future.join();
if (!future.isConnected())
{
throw new OpenException("Could not open connection", _lastException);
}
_ioSession = future.getSession();
_ioSession.setAttachment(engine);
engine.setNetworkDriver(this);
_protocolEngine = engine;