| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/zeroconf/__pycache__/ |
Upload File : |
�
�؆e2 � �X � d Z ddlmZmZ ddlmZ ddlmZ erddlm Z e
Z G d� d� Zy )
a� Multicast DNS Service Discovery for Python, v0.14-wmcbrine
Copyright 2003 Paul Scott-Murphy, 2014 William McBrine
This module provides a framework for the use of DNS Service Discovery
using IP multicast.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
USA
� )�
TYPE_CHECKING�List� )� DNSRecord)�RecordUpdate)�Zeroconfc �N � e Zd ZdZdddededdfd�Zddded ee ddfd
�Z
dd�Zy)
�RecordUpdateListenerz�Base call for all record listeners.
All listeners passed to async_add_listener should use RecordUpdateListener
as a base class. In the future it will be required.
�zcr �now�record�returnNc � � t d� �)z�Update a single record.
This method is deprecated and will be removed in a future version.
update_records should be implemented instead.
zDupdate_record is deprecated and will be removed in a future version.)�RuntimeError)�selfr r r
s �3/usr/lib/python3/dist-packages/zeroconf/_updates.py�
update_recordz"RecordUpdateListener.update_record* s � � �a�b�b� �recordsc �L � |D ] }| j |||j � �! y)a� Update multiple records in one shot.
All records that are received in a single packet are passed
to update_records.
This implementation is a compatibility shim to ensure older code
that uses RecordUpdateListener as a base class will continue to
get calls to update_record. This method will raise
NotImplementedError in a future version.
At this point the cache will not have the new records
Records are passed as a list of RecordUpdate. This
allows consumers of async_update_records to avoid cache lookups.
This method will be run in the event loop.
N)r �new)r r r r r
s r �async_update_recordsz)RecordUpdateListener.async_update_records4 s) � �$ � 4�F����r�3��
�
�3� 4r c � � y)z�Called when a record update has completed for all handlers.
At this point the cache will have the new records.
This method will be run in the event loop.
N� )r s r �async_update_records_completez2RecordUpdateListener.async_update_records_completeI s � r )r N)�__name__�
__module__�__qualname__�__doc__�floatr r �float_r r r r r r r r
r
# s] � ��c��c�#(�c�2;�c�
�c�4�z� 4�� 4��l�I[� 4�`d� 4�*r r
N)
r �typingr r �_dnsr �_record_updater �_corer r r! r
r r r �<module>r&