'Return a deferred that will fire with the next connected protocol.
@return: L{Deferred} that will fire with the next connected protocol.'

@_machine.output()
def _awaitingConnection(self, failAfterFailures=None):

    result = Deferred()
    self._awaitingConnected.append((result, failAfterFailures))
    return result
