Example #1
0
    def buildProtocol(self, addr):
        xs = JabberProtocolFactory.buildProtocol(self, addr)

        # the protocols are components, too, so we treat them like services
        xs.setServiceParent(self)
        xs.addObserver(STREAM_AUTHD_EVENT, self.streamAuthenticated, 0, xs=xs)
        
        return xs
Example #2
0
    def buildProtocol(self, addr):
        xs = JabberProtocolFactory.buildProtocol(self, addr)
        #xs.name = self.name

        # the protocols are components, too, so we treat them like services
        #xs.setServiceParent(self)

        return xs
Example #3
0
 def addService(self, svc):
     JabberProtocolFactory.addService(self, svc)
Example #4
0
 def __init__(self, *args, **kw):
     JabberProtocolFactory.__init__(self, *args, **kw)
     self.protocols = []