'Connection notification.
@return: A L{Deferred} that fires when this instance\'s
L{twisted.internet.interfaces.IConnector.connect} method
is called.
@rtype: L{Deferred}'

def notifyOnConnect(self):

    notifier = Deferred()
    self.notifications.appendleft(notifier)
    return notifier
