示例#1
0
 def __init__(self, reactor, domain, factory, credentials, tls_reactor):
     self.tls_reactor = tls_reactor
     SRVConnector.__init__(self,
                           reactor,
                           'xmpp-net',
                           str(domain),
                           factory,
                           connectFuncName='connectTLS',
                           connectFuncKwArgs={'credentials': credentials})
示例#2
0
文件: session.py 项目: cvogler/punjab
 def __init__(self, client_reactor, domain, factory):
     """ Init """
     SRVConnector.__init__(self, client_reactor, 'xmpp-client', domain, factory)
     if isinstance(domain, unicode):
         warnings.warn(
             "Domain argument to XMPPClientConnector should be bytes, "
             "not unicode",
             stacklevel=2)
         domain = domain.encode('ascii')
     self.timeout = [1,3]
示例#3
0
文件: session.py 项目: eadev/punjab
 def __init__(self, client_reactor, domain, factory):
     """ Init """
     if isinstance(domain, unicode):
         warnings.warn(
             "Domain argument to XMPPClientConnector should be bytes, "
             "not unicode",
             stacklevel=2)
         domain = domain.encode('ascii')
     SRVConnector.__init__(self, client_reactor, 'xmpp-client', domain,
                           factory)
     self.timeout = [1, 3]
示例#4
0
    def __init__(self, reactor, dn, factory,
                 overrides=None, bindAddress=None):
        if not isinstance(dn, distinguishedname.DistinguishedName):
            dn = distinguishedname.DistinguishedName(stringValue=dn)
        if overrides is None:
            overrides = {}
        self.override = self._findOverRide(dn, overrides)

        domain = dn.getDomainName() or ''
        SRVConnector.__init__(self, reactor,
                  'ldap', domain, factory,
                  connectFuncKwArgs={'bindAddress': bindAddress})
示例#5
0
 def __init__(self, client_reactor, domain, factory):
     """ Init """
     SRVConnector.__init__(self, client_reactor, 'xmpp-client', domain, factory)
     self.timeout = [1,3]
示例#6
0
文件: xmpp.py 项目: Ri0n/Hermes
 def __init__(self, reactor, domain, factory):
     SRVConnector.__init__(self, reactor, 'xmpp-client', domain, factory)
 def __init__(self, reactor, domain, factory, port=5222):
     self.port=port
     SRVConnector.__init__(self, reactor, 'xmpp-client', domain, factory)
示例#8
0
 def __init__(self, reactor, domain, factory):
     SRVConnector.__init__(self, reactor, 'xmpp-client', domain, factory)
示例#9
0
文件: server.py 项目: thepaul/wokkel
 def __init__(self, reactor, domain, factory):
     SRVConnector.__init__(self, reactor, 'xmpp-server', domain, factory)
示例#10
0
 def __init__(self, reactor, domain, factory):
     SRVConnector.__init__(self, reactor, 'xmpp-server', domain, factory)
示例#11
0
 def __init__(self, reactor, domain, factory, credentials, tls_reactor):
     self.tls_reactor = tls_reactor
     SRVConnector.__init__(self, reactor, 'xmpp-net', str(domain), factory,
         connectFuncName='connectTLS', connectFuncKwArgs={'credentials':credentials})
示例#12
0
 def __init__(self, client_reactor, domain, factory):
     """ Init """
     SRVConnector.__init__(self, client_reactor, 'xmpp-client', domain,
                           factory)
     self.timeout = [1, 3]