(self, sock, address)
return await fut
Connect to a remote socket at address.

        This method is a coroutine.
Connect to a remote socket at address.
Connect to a remote socket at address .
async def sock_connect(self, sock, address):
        """Connect to a remote socket at address.

        This method is a coroutine.
        """
        _check_ssl_socket(sock)
        if self._debug and sock.gettimeout() != 0:
            raise ValueError("the socket must be non-blocking")

        if not hasattr(socket, 'AF_UNIX') or sock.family != socket.AF_UNIX:
            resolved = await self._ensure_resolved(
                address, family=sock.family, proto=sock.proto, loop=self)
            _, _, _, _, address = resolved[0]

        fut = self.create_future()
        self._sock_connect(fut, sock, address)
        return await fut
async def sock_connect ( self , sock , address ) : _check_ssl_socket ( sock ) if self . _debug and sock . gettimeout ( ) != 0 : raise ValueError ( "the socket must be non-blocking" ) if not hasattr ( socket , 'AF_UNIX' ) or sock . family != socket . AF_UNIX : resolved = await self . _ensure_resolved ( address , family = sock . family , proto = sock . proto , loop = self ) _ , _ , _ , _ , address = resolved [ 0 ] fut = self . create_future ( ) self . _sock_connect ( fut , sock , address ) return await fut