File: //usr/lib/python3/dist-packages/twisted/words/protocols/jabber/__pycache__/client.cpython-310.pyc
o
�b7 � @ s� d dl mZmZmZ d dlmZ d dlmZmZm Z dZ
dZdZdZ
e �d�Ze �d �Zd
d� ZG dd
� d
ej�ZG dd� d�ZG dd� dej�ZG dd� d�ZG dd� dej�ZG dd� dej�Zddd�ZG dd� dej�ZdS )� )�error�sasl� xmlstream)�JID)�domish�utility�xpathz#urn:ietf:params:xml:ns:xmpp-streamsz urn:ietf:params:xml:ns:xmpp-bindz#urn:ietf:params:xml:ns:xmpp-sessionz"http://jabber.org/features/iq-authz/iq/query/digestz/iq/query/passwordc C s t | |�}t�|�S �N)�BasicAuthenticatorr �XmlStreamFactory)�jid�secret�a� r �G/usr/lib/python3/dist-packages/twisted/words/protocols/jabber/client.py�basicClientFactory s
r c @ s4 e Zd ZdZddd�Zdd� Zd
dd �Zd
d� ZdS )�IQa�
Wrapper for a Info/Query packet.
This provides the necessary functionality to send IQs and get notified when
a result comes back. It's a subclass from L{domish.Element}, so you can use
the standard DOM manipulation calls to add data to the outbound request.
@type callbacks: L{utility.CallbackList}
@cvar callbacks: Callback list to be notified when response comes back
�setc C s2 t j�| d� | �� || d<