Exemplo n.º 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})
Exemplo n.º 2
0
 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]
Exemplo n.º 3
0
 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]
Exemplo n.º 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})
Exemplo n.º 5
0
 def __init__(self, client_reactor, domain, factory):
     """ Init """
     SRVConnector.__init__(self, client_reactor, 'xmpp-client', domain, factory)
     self.timeout = [1,3]
Exemplo n.º 6
0
Arquivo: xmpp.py Projeto: 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)
Exemplo n.º 8
0
 def __init__(self, reactor, domain, factory):
     SRVConnector.__init__(self, reactor, 'xmpp-client', domain, factory)
Exemplo n.º 9
0
 def __init__(self, reactor, domain, factory):
     SRVConnector.__init__(self, reactor, 'xmpp-server', domain, factory)
Exemplo n.º 10
0
 def __init__(self, reactor, domain, factory):
     SRVConnector.__init__(self, reactor, 'xmpp-server', domain, factory)
Exemplo n.º 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})
Exemplo n.º 12
0
 def __init__(self, client_reactor, domain, factory):
     """ Init """
     SRVConnector.__init__(self, client_reactor, 'xmpp-client', domain,
                           factory)
     self.timeout = [1, 3]