def connect(self, protocolFactory):
        if isIPv6Address(self._host):
            d = self._resolvedHostConnect(self._host, protocolFactory)
        else:
            d = self._nameResolution(self._host)
            d.addCallback(lambda result: result[0][self._GAI_ADDRESS]
                          [self._GAI_ADDRESS_HOST])
            d.addCallback(self._resolvedHostConnect, protocolFactory)
        return d
Evaluate functional composition ``f(g)`` in ``K[x]``.
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/internet/endpoints.py/TCP6ClientEndpoint.connect--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/polys/densetools.py/dup_compose