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})
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]
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]
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})
def __init__(self, client_reactor, domain, factory): """ Init """ SRVConnector.__init__(self, client_reactor, 'xmpp-client', domain, factory) self.timeout = [1,3]
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)
def __init__(self, reactor, domain, factory): SRVConnector.__init__(self, reactor, 'xmpp-server', domain, factory)
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})
def __init__(self, client_reactor, domain, factory): """ Init """ SRVConnector.__init__(self, client_reactor, 'xmpp-client', domain, factory) self.timeout = [1, 3]