'Wait until connection is set up and return the transport and protocol
instances.'

def connect(self):

    if self.alive:
        self._connection_made.wait()
        if (not self.alive):
            raise RuntimeError('connection_lost    already    called')
        return (self, self.protocol)
    else:
        raise RuntimeError('already    stopped')
