def connect(self, protocolFactory):
        """Starts a process and connect a protocol to it.
        """
        deferred = self._startProcess()
        deferred.addCallback(self._connectRelay, protocolFactory)
        deferred.addCallback(self._startRelay)
        return deferred