def remote_connect(self, connID, addr):
        """ Connect to the endpoint with the given address using the
            connection information matching the received ID.

            @param connID:      Unique ID which is used to identify the tuple
                                containing the connection information.
            @type  connID:      str

            @param addr:        Address to which the endpoint should connect.
                                It consists of an IP address and a port number.
            @type  addr:        (str, int)
        """
        assert connID in self._pendingConnections

        # Retrieve the key which should be sent and replace it with None to
        # indicate that the key has already been sent
        info = self._pendingConnections[connID]
        key, auth = info
        info[0] = None

        client = ClientCreator(self._reactor, RCEInternalProtocol, self)
        d = client.connectTCP(*addr)
        d.addCallback(lambda p: p.sendInit(connID, key))
        d.addErrback(self._connectError, auth)
dataset/ETHPy150Open rapyuta/rce/rce-core/rce/slave/endpoint.py/Endpoint.remote_connect/original