Beispiel #1
0
    def __init__(self):
        XMPPHandler.__init__(self)
        self.lookups = {}
        self.presence_cache = {}
        self._last_lookup = 0

        """
Beispiel #2
0
 def connectionLost(self, reason):
     XMPPHandler.connectionLost(self, reason)
     # stop pinger
     if self.pinger:
         self.pinger.cancel()
     # stop ping timeout
     if self.ping_timeout:
         self.ping_timeout.cancel()
Beispiel #3
0
 def test_addHandler(self):
     """
     Test the addition of a protocol handler.
     """
     handler = XMPPHandler()
     handler.setHandlerParent(self.factory.streamManager)
     self.assertIn(handler, self.factory.streamManager)
     self.assertIdentical(self.factory.streamManager, handler.parent)
Beispiel #4
0
 def connectionLost(self, reason):
     XMPPHandler.connectionLost(self, reason)
     # stop pinger
     if self.pinger:
         self.pinger.cancel()
     # stop ping timeout
     if self.ping_timeout:
         self.ping_timeout.cancel()
Beispiel #5
0
 def test_addHandler(self):
     """
     Test the addition of a protocol handler.
     """
     handler = XMPPHandler()
     handler.setHandlerParent(self.factory.streamManager)
     self.assertIn(handler, self.factory.streamManager)
     self.assertIdentical(self.factory.streamManager, handler.parent)
Beispiel #6
0
 def test_removeHandler(self):
     """
     Test removal of a protocol handler.
     """
     handler = XMPPHandler()
     handler.setHandlerParent(self.factory.streamManager)
     handler.disownHandlerParent(self.factory.streamManager)
     self.assertNotIn(handler, self.factory.streamManager)
     self.assertIdentical(None, handler.parent)
Beispiel #7
0
 def test_removeHandler(self):
     """
     Test removal of a protocol handler.
     """
     handler = XMPPHandler()
     handler.setHandlerParent(self.factory.streamManager)
     handler.disownHandlerParent(self.factory.streamManager)
     self.assertNotIn(handler, self.factory.streamManager)
     self.assertIdentical(None, handler.parent)
Beispiel #8
0
 def __init__(self):
     XMPPHandler.__init__(self)
     self.services = []
     self.serv_handlers = {}
Beispiel #9
0
 def __init__(self):
     XMPPHandler.__init__(self)
     # push handler for items quick access
     self.handler_items = []
     # push handlers
     self.push_handlers = {}
Beispiel #10
0
 def __init__(self):
     XMPPHandler.__init__(self)
     self.ping_timeout = None
     self.pinger = None
Beispiel #11
0
 def __init__(self):
     XMPPHandler.__init__(self)
Beispiel #12
0
 def __init__(self):
     XMPPHandler.__init__(self)
     # command list for quick access
     self.commands = []
     # command handlers for execution
     self.cmd_handlers = {}
Beispiel #13
0
 def __init__(self):
     XMPPHandler.__init__(self)
     # command list for quick access
     self.commands = []
     # command handlers for execution
     self.cmd_handlers = {}
Beispiel #14
0
 def __init__(self):
     XMPPHandler.__init__(self)
     # push handler for items quick access
     self.handler_items = []
     # push handlers
     self.push_handlers = {}
Beispiel #15
0
 def __init__(self):
     XMPPHandler.__init__(self)
Beispiel #16
0
    def connectionLost(self, reason):
        XMPPHandler.connectionLost(self, reason)

        # cleanup
        self.post_handlers = None
Beispiel #17
0
 def __init__(self):
     XMPPHandler.__init__(self)
     self.ping_timeout = None
     self.pinger = None
Beispiel #18
0
 def __init__(self):
     XMPPHandler.__init__(self)
     self.services = []
     self.serv_handlers = {}
Beispiel #19
0
    def connectionLost(self, reason):
        XMPPHandler.connectionLost(self, reason)

        # cleanup
        self.post_handlers = None