'Connect to the server using the resolved hostname.'

def _resolvedHostConnect(self, resolvedHost, protocolFactory):

    try:
        wf = _WrappingFactory(protocolFactory)
        self._reactor.connectTCP(resolvedHost, self._port, wf, timeout=self._timeout, bindAddress=self._bindAddress)
        return wf._onConnection
    except:
        return defer.fail()
