%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3.12/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3.12/__pycache__/socketserver.cpython-312.pyc

�

���f�l��\�dZdZddlZddlZddlZddlZddlZddlmZddl	m
Z	gd�Zeed�rejgd��eed	�r/ejgd
��eed�rejddg�eed
�r
ejZnej ZGd�d�ZGd�de�ZGd�de�Zeed�r
Gd�d�ZGd�de�ZGd�d�ZGd�d�Zeed�rGd�dee�ZGd�dee�ZGd �d!ee�ZGd"�d#ee�Zeed	�rOGd$�d%e�ZGd&�d'e�ZGd(�d)ee�ZGd*�d+ee�Z eed�rGd,�dee�Z!Gd-�dee�Z"Gd.�d/�Z#Gd0�d1e#�Z$Gd2�d3e�Z%Gd4�d5e#�Z&y)6aqGeneric socket server classes.

This module tries to capture the various aspects of defining a server:

For socket-based servers:

- address family:
        - AF_INET{,6}: IP (Internet Protocol) sockets (default)
        - AF_UNIX: Unix domain sockets
        - others, e.g. AF_DECNET are conceivable (see <socket.h>
- socket type:
        - SOCK_STREAM (reliable stream, e.g. TCP)
        - SOCK_DGRAM (datagrams, e.g. UDP)

For request-based servers (including socket-based):

- client address verification before further looking at the request
        (This is actually a hook for any processing that needs to look
         at the request before anything else, e.g. logging)
- how to handle multiple requests:
        - synchronous (one request is handled at a time)
        - forking (each request is handled by a new process)
        - threading (each request is handled by a new thread)

The classes in this module favor the server type that is simplest to
write: a synchronous TCP/IP server.  This is bad class design, but
saves some typing.  (There's also the issue that a deep class hierarchy
slows down method lookups.)

There are five classes in an inheritance diagram, four of which represent
synchronous servers of four types:

        +------------+
        | BaseServer |
        +------------+
              |
              v
        +-----------+        +------------------+
        | TCPServer |------->| UnixStreamServer |
        +-----------+        +------------------+
              |
              v
        +-----------+        +--------------------+
        | UDPServer |------->| UnixDatagramServer |
        +-----------+        +--------------------+

Note that UnixDatagramServer derives from UDPServer, not from
UnixStreamServer -- the only difference between an IP and a Unix
stream server is the address family, which is simply repeated in both
unix server classes.

Forking and threading versions of each type of server can be created
using the ForkingMixIn and ThreadingMixIn mix-in classes.  For
instance, a threading UDP server class is created as follows:

        class ThreadingUDPServer(ThreadingMixIn, UDPServer): pass

The Mix-in class must come first, since it overrides a method defined
in UDPServer! Setting the various member variables also changes
the behavior of the underlying server mechanism.

To implement a service, you must derive a class from
BaseRequestHandler and redefine its handle() method.  You can then run
various versions of the service by combining one of the server classes
with your request handler class.

The request handler class must be different for datagram or stream
services.  This can be hidden by using the request handler
subclasses StreamRequestHandler or DatagramRequestHandler.

Of course, you still have to use your head!

For instance, it makes no sense to use a forking server if the service
contains state in memory that can be modified by requests (since the
modifications in the child process would never reach the initial state
kept in the parent process and passed to each child).  In this case,
you can use a threading server, but you will probably have to use
locks to avoid two requests that come in nearly simultaneous to apply
conflicting changes to the server state.

On the other hand, if you are building e.g. an HTTP server, where all
data is stored externally (e.g. in the file system), a synchronous
class will essentially render the service "deaf" while one request is
being handled -- which may be for a very long time if a client is slow
to read all the data it has requested.  Here a threading or forking
server is appropriate.

In some cases, it may be appropriate to process part of a request
synchronously, but to finish processing in a forked child depending on
the request data.  This can be implemented by using a synchronous
server and doing an explicit fork in the request handler class
handle() method.

Another approach to handling multiple simultaneous requests in an
environment that supports neither threads nor fork (or where these are
too expensive or inappropriate for the service) is to maintain an
explicit table of partially finished requests and to use a selector to
decide which request to work on next (or whether to handle a new
incoming request).  This is particularly important for stream services
where each client can potentially be connected for a long time (if
threads or subprocesses cannot be used).

Future work:
- Standard classes for Sun RPC (which uses either UDP or TCP)
- Standard mix-in classes to implement various authentication
  and encryption schemes

XXX Open problems:
- What to do with out-of-band data?

BaseServer:
- split generic "request" functionality out into BaseServer class.
  Copyright (C) 2000  Luke Kenneth Casson Leighton <lkcl@samba.org>

  example: read entries from a SQL database (requires overriding
  get_request() to return a table entry from the database).
  entry is processed by a RequestHandlerClass.

z0.4�N)�BufferedIOBase)�	monotonic)	�
BaseServer�	TCPServer�	UDPServer�ThreadingUDPServer�ThreadingTCPServer�BaseRequestHandler�StreamRequestHandler�DatagramRequestHandler�ThreadingMixIn�fork)�ForkingUDPServer�ForkingTCPServer�ForkingMixIn�AF_UNIX)�UnixStreamServer�UnixDatagramServer�ThreadingUnixStreamServer�ThreadingUnixDatagramServer�ForkingUnixStreamServer�ForkingUnixDatagramServer�PollSelectorc�|�eZdZdZdZd�Zd�Zdd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zy)ra�Base class for server classes.

    Methods for the caller:

    - __init__(server_address, RequestHandlerClass)
    - serve_forever(poll_interval=0.5)
    - shutdown()
    - handle_request()  # if you do not use serve_forever()
    - fileno() -> int   # for selector

    Methods that may be overridden:

    - server_bind()
    - server_activate()
    - get_request() -> request, client_address
    - handle_timeout()
    - verify_request(request, client_address)
    - server_close()
    - process_request(request, client_address)
    - shutdown_request(request)
    - close_request(request)
    - service_actions()
    - handle_error()

    Methods for derived classes:

    - finish_request(request, client_address)

    Class variables that may be overridden by derived classes or
    instances:

    - timeout
    - address_family
    - socket_type
    - allow_reuse_address
    - allow_reuse_port

    Instance variables:

    - RequestHandlerClass
    - socket

    Nc�`�||_||_tj�|_d|_y)�/Constructor.  May be extended, do not override.FN)�server_address�RequestHandlerClass�	threading�Event�_BaseServer__is_shut_down�_BaseServer__shutdown_request)�selfrrs   �#/usr/lib/python3.12/socketserver.py�__init__zBaseServer.__init__�s)��,���#6�� �'�o�o�/���"'���c��y�zSCalled by constructor to activate the server.

        May be overridden.

        N��r#s r$�server_activatezBaseServer.server_activate����	
r&c��|jj�	t�5}|j|tj
�|jsM|j|�}|jrn/|r|j�|j�|js�Mddd�d|_|jj�y#1swY�+xYw#d|_|jj�wxYw)z�Handle one request at a time until shutdown.

        Polls for shutdown every poll_interval seconds. Ignores
        self.timeout. If you need to do periodic tasks, do them in
        another thread.
        NF)r!�clear�_ServerSelector�register�	selectors�
EVENT_READr"�select�_handle_request_noblock�service_actions�set)r#�
poll_interval�selector�readys    r$�
serve_foreverzBaseServer.serve_forever�s���	
���!�!�#�	&�
!�"�
+�h��!�!�$�	�(<�(<�=��1�1�$�O�O�M�:�E��.�.����4�4�6��(�(�*��1�1�
+�',�D�#����#�#�%�
+�
+��',�D�#����#�#�%�s#�
C�A9C
� C�
C�C�#C9c�F�d|_|jj�y)z�Stops the serve_forever loop.

        Blocks until the loop has finished. This must be called while
        serve_forever() is running in another thread, or it will
        deadlock.
        TN)r"r!�waitr*s r$�shutdownzBaseServer.shutdown�s��#'������ � �"r&c��y)z�Called by the serve_forever() loop.

        May be overridden by a subclass / Mixin to implement any code that
        needs to be run during the loop.
        Nr)r*s r$r5zBaseServer.service_actionsr,r&c���|jj�}|�
|j}n"|j�t||j�}|�
t	�|z}t�5}|j
|tj�	|j|�r|j�cddd�S|�+t	�z
}|dkr|j�cddd�S�X#1swYyxYw)zOHandle one request, possibly blocking.

        Respects self.timeout.
        Nr)�socket�
gettimeout�timeout�min�timer/r0r1r2r3r4�handle_timeout)r#rB�deadliner8s    r$�handle_requestzBaseServer.handle_requests����+�+�(�(�*���?��l�l�G�
�\�\�
%��'�4�<�<�0�G����v��'�H��
�
	9�(����d�I�$8�$8�9���?�?�7�+��7�7�9�
	9�
	9��*�"*�T�V�"3��"�Q�;�#'�#6�#6�#8�
	9�
	9��
	9�
	9�s�%AC�1#C�C�C(c�@�	|j�\}}|j||�r	|j||�y|j
|�y#t$rYywxYw#t$r&|j||�|j
|�Yy|j
|��xYw)z�Handle one request, without blocking.

        I assume that selector.select() has returned that the socket is
        readable before this function was called, so there should be no risk of
        blocking in get_request().
        N)�get_request�OSError�verify_request�process_request�	Exception�handle_error�shutdown_request�r#�request�client_addresss   r$r4z"BaseServer._handle_request_noblock1s���	�&*�&6�&6�&8�#�G�^����w��7�
��$�$�W�n�=�
�!�!�'�*���	��	��
�
/��!�!�'�>�:��%�%�g�.�
��%�%�g�.��s"�A
�A�
	A�A�,B�
Bc��y)zcCalled if no new request arrives within self.timeout.

        Overridden by ForkingMixIn.
        Nr)r*s r$rEzBaseServer.handle_timeoutHs��
	
r&c��y)znVerify the request.  May be overridden.

        Return True if we should proceed with this request.

        Tr)rPs   r$rKzBaseServer.verify_requestOs��r&c�J�|j||�|j|�y)zVCall finish_request.

        Overridden by ForkingMixIn and ThreadingMixIn.

        N)�finish_requestrOrPs   r$rLzBaseServer.process_requestWs"��	
���G�^�4����g�&r&c��y�zDCalled to clean-up the server.

        May be overridden.

        Nr)r*s r$�server_closezBaseServer.server_close`r,r&c�*�|j|||�y)z8Finish one request by instantiating RequestHandlerClass.N)rrPs   r$rVzBaseServer.finish_requesths��� � ��.�$�?r&c�&�|j|�y�z3Called to shutdown and close an individual request.N��
close_request�r#rQs  r$rOzBaseServer.shutdown_requestl������7�#r&c��y�z)Called to clean up an individual request.Nr)r_s  r$r^zBaseServer.close_requestp���r&c���tdtj��td|tj��ddl}|j	�tdtj��y)ztHandle an error gracefully.  May be overridden.

        The default is to print a traceback and continue.

        z(----------------------------------------)�filez4Exception occurred during processing of request fromrN)�print�sys�stderr�	traceback�	print_exc)r#rQrRris    r$rNzBaseServer.handle_errortsC��	�f�3�:�:�&�
�D�����	-������
�f�3�:�:�&r&c��|S�Nr)r*s r$�	__enter__zBaseServer.__enter__�s���r&c�$�|j�yrl)rY)r#�argss  r$�__exit__zBaseServer.__exit__�s�����r&)g�?)�__name__�
__module__�__qualname__�__doc__rBr%r+r:r=r5rGr4rErKrLrYrVrOr^rNrmrpr)r&r$rr�se��*�X�G�(�
�&�:#�
�&9�:+�.
��'�
�@�$�
�'��r&rc�~�eZdZdZej
ZejZdZ	dZ
dZd
d�Zd�Z
d�Zd�Zd�Zd	�Zd
�Zd�Zy)raJBase class for various socket-based server classes.

    Defaults to synchronous IP stream (i.e., TCP).

    Methods for the caller:

    - __init__(server_address, RequestHandlerClass, bind_and_activate=True)
    - serve_forever(poll_interval=0.5)
    - shutdown()
    - handle_request()  # if you don't use serve_forever()
    - fileno() -> int   # for selector

    Methods that may be overridden:

    - server_bind()
    - server_activate()
    - get_request() -> request, client_address
    - handle_timeout()
    - verify_request(request, client_address)
    - process_request(request, client_address)
    - shutdown_request(request)
    - close_request(request)
    - handle_error()

    Methods for derived classes:

    - finish_request(request, client_address)

    Class variables that may be overridden by derived classes or
    instances:

    - timeout
    - address_family
    - socket_type
    - request_queue_size (only for stream sockets)
    - allow_reuse_address
    - allow_reuse_port

    Instance variables:

    - server_address
    - RequestHandlerClass
    - socket

    �Fc��tj|||�tj|j|j�|_|r"	|j�|j
�yy#|j��xYw)rN)rr%r@�address_family�socket_type�server_bindr+rY)r#rr�bind_and_activates    r$r%zTCPServer.__init__�sq�����D�.�2E�F��m�m�D�$7�$7�$(�$4�$4�6����
�� � �"��$�$�&���
��!�!�#��s�
 A,�,A?c���|jrIttd�r9|jjtjtj
d�|jrIttd�r9|jjtjtjd�|jj|j�|jj�|_	y)zOCalled by constructor to bind the socket.

        May be overridden.

        �SO_REUSEADDR��SO_REUSEPORTN)�allow_reuse_address�hasattrr@�
setsockopt�
SOL_SOCKETr}�allow_reuse_portr�bindr�getsocknamer*s r$rzzTCPServer.server_bind�s����#�#����(G��K�K�"�"�6�#4�#4�f�6I�6I�1�M�� � �W�V�^�%D��K�K�"�"�6�#4�#4�f�6I�6I�1�M�������,�,�-�"�k�k�5�5�7��r&c�N�|jj|j�yr()r@�listen�request_queue_sizer*s r$r+zTCPServer.server_activate�s��	
�����4�2�2�3r&c�8�|jj�yrX)r@�closer*s r$rYzTCPServer.server_close�s��	
�����r&c�6�|jj�S)zMReturn socket file number.

        Interface required by selector.

        )r@�filenor*s r$r�zTCPServer.fileno�����{�{�!�!�#�#r&c�6�|jj�S)zYGet the request and client address from the socket.

        May be overridden.

        )r@�acceptr*s r$rIzTCPServer.get_request�r�r&c��	|jtj�|j	|�y#t$rY�wxYwr\)r=r@�SHUT_WRrJr^r_s  r$rOzTCPServer.shutdown_request�s?��	�
���V�^�^�,�	
���7�#���	��	�s�3�	?�?c�$�|j�yrb)r�r_s  r$r^zTCPServer.close_requests���
�
�r&N)T)rqrrrsrtr@�AF_INETrx�SOCK_STREAMryr�r�r�r%rzr+rYr�rIrOr^r)r&r$rr�sX��,�\�^�^�N��$�$�K��������8�4��$�$�$�r&rc�L�eZdZdZdZdZejZdZ	d�Z
d�Zd�Zd�Z
y)	rzUDP server class.Fi c�r�|jj|j�\}}||jf|fSrl)r@�recvfrom�max_packet_size)r#�data�client_addrs   r$rIzUDPServer.get_requests5�� �K�K�0�0��1E�1E�F���k��d�k�k�"�K�/�/r&c��yrlr)r*s r$r+zUDPServer.server_activatercr&c�&�|j|�yrlr]r_s  r$rOzUDPServer.shutdown_requestr`r&c��yrlr)r_s  r$r^zUDPServer.close_request#rcr&N)rqrrrsrtr�r�r@�
SOCK_DGRAMryr�rIr+rOr^r)r&r$rrs5��������#�#�K��O�0�
�$�
r&rc�P��eZdZdZdZdZdZdZdd�d�Zd	�Z	d
�Z
d�Z�fd�Z�xZ
S)
rz5Mix-in class to handle each request in a new process.i,N�(TF��blockingc��|j�yt|j�|jk\rX	tjdd�\}}|jj|�t|j�|jk\r�X|jj�D]K}	|rdntj}tj||�\}}|jj|��My#t$r|jj�Y��t$rY��wxYw#t$r|jj|�Y��t$rY��wxYw)z7Internal routine to wait for children that have exited.N���r)�active_children�len�max_children�os�waitpid�discard�ChildProcessErrorr.rJ�copy�WNOHANG)r#r��pid�_�flagss     r$�collect_childrenzForkingMixIn.collect_children1s-���#�#�+���d�*�*�+�t�/@�/@�@���Z�Z��A�.�F�C���(�(�0�0��5��d�*�*�+�t�/@�/@�@��+�+�0�0�2�
��
�!)�A�r�z�z�E��Z�Z��U�3�F�C���(�(�0�0��5�

��)�1��(�(�.�.�0������)�6��(�(�0�0��5�����s0�4C1�&AD$�1#D!�D!� D!�$$E�
E�Ec�$�|j�y)zvWait for zombies after self.timeout seconds of inactivity.

            May be extended, do not override.
            N�r�r*s r$rEzForkingMixIn.handle_timeoutT���

�!�!�#r&c�$�|j�y)z�Collect the zombie child processes regularly in the ForkingMixIn.

            service_actions is called in the BaseServer's serve_forever loop.
            Nr�r*s r$r5zForkingMixIn.service_actions[r�r&c�>�tj�}|rH|j�t�|_|jj	|�|j|�yd}	|j
||�d}	|j|�tj|�y#t$r|j||�Y�EwxYw#tj|�wxYw#	|j|�tj|�w#tj|�wxYwxYw)z-Fork a new subprocess to process the request.Nr~r)r�rr�r6�addr^rVrMrNrO�_exit)r#rQrRr��statuss     r$rLzForkingMixIn.process_requestbs����'�'�)�C���'�'�/�+.�5�D�(��$�$�(�(��-��"�"�7�+����	)��'�'���@��F�)��-�-�g�6�����(��
!�?��%�%�g�~�>�?������(��)��-�-�g�6�����(������(�sH�"B�7B?�B<�9C�;B<�<C�?C�D�D�,D�D�Dc�Z��t�|��|j|j��y)Nr�)�superrYr��block_on_close�r#�	__class__s �r$rYzForkingMixIn.server_close{s%����G� �"��!�!�4�+>�+>�!�?r&)rqrrrsrtrBr�r�r�r�rEr5rLrY�
__classcell__�r�s@r$rr(s>���C���������/4�!	�F	$�	$�	)�2	@�	@r&rc�4��eZdZdZ�fd�Zd�Zd�Zd�Z�xZS)�_Threadsz2
    Joinable list of all non-daemon threads.
    c�^��|j�|jryt�|�
|�yrl)�reap�daemonr��append)r#�threadr�s  �r$r�z_Threads.append�s"����	�	���=�=��
���v�r&c��g|ddc|dd}|Srlr))r#�results  r$�pop_allz_Threads.pop_all�s���d�1�g���Q����
r&c�N�|j�D]}|j��yrl)r��join�r#r�s  r$r�z
_Threads.join�s ���l�l�n�	�F��K�K�M�	r&c��d�|D�|ddy)Nc3�BK�|]}|j�s�|���y�wrl)�is_alive)�.0r�s  r$�	<genexpr>z _Threads.reap.<locals>.<genexpr>�s����B�f����0A�6�B�s��r)r*s r$r�z
_Threads.reap�s��B��B��Q�r&)	rqrrrsrtr�r�r�r�r�r�s@r$r�r��s�������Cr&r�c��eZdZdZd�Zd�Zy)�
_NoThreadsz)
    Degenerate version of _Threads.
    c��yrlr)r�s  r$r�z_NoThreads.append����r&c��yrlr)r*s r$r�z_NoThreads.join�r�r&N)rqrrrsrtr�r�r)r&r$r�r��s���
�
r&r�c�D��eZdZdZdZdZe�Zd�Zd�Z	�fd�Z
�xZS)r
z4Mix-in class to handle each request in a new thread.FTc��	|j||�|j|�y#t$r|j||�Y�/wxYw#|j|�wxYw)zgSame as in BaseServer but as a thread.

        In addition, exception handling is done here.

        N)rVrMrNrOrPs   r$�process_request_threadz%ThreadingMixIn.process_request_thread�sY��	+������8�
�!�!�'�*���	7����g�~�6�	7��
�!�!�'�*�s!�&�A�A�A�A�Ac� �|jr#t|�jdt��t	j
|j||f��}|j|_|jj|�|j�y)z*Start a new thread to process the request.�_threads)�targetroN)r��vars�
setdefaultr�r�Threadr��daemon_threadsr�r�r��start)r#rQrR�ts    r$rLzThreadingMixIn.process_request�si�������J�!�!�*�h�j�9����d�&A�&A�%,�n�$=�
?���&�&����
�
���Q��	���	r&c�V��t�|��|jj�yrl)r�rYr�r�r�s �r$rYzThreadingMixIn.server_close�s���
�����
�
���r&)rqrrrsrtr�r�r�r�r�rLrYr�r�s@r$r
r
�s/���>��N��N��|�H�+���r&r
c��eZdZy)rN�rqrrrsr)r&r$rr���r&rc��eZdZy)rNr�r)r&r$rr�r�r&rc��eZdZy)rNr�r)r&r$rr�r�r&rc��eZdZy)r	Nr�r)r&r$r	r	�r�r&r	c�$�eZdZejZy)rN�rqrrrsr@rrxr)r&r$rr�������r&rc�$�eZdZejZy)rNr�r)r&r$rr�r�r&rc��eZdZy)rNr�r)r&r$rr�r�r&rc��eZdZy)rNr�r)r&r$rr�r�r&rc��eZdZy)rNr�r)r&r$rr�r�r&c��eZdZy)rNr�r)r&r$rr�r�r&c�(�eZdZdZd�Zd�Zd�Zd�Zy)r
a�Base class for request handler classes.

    This class is instantiated for each request to be handled.  The
    constructor sets the instance variables request, client_address
    and server, and then calls the handle() method.  To implement a
    specific service, all you need to do is to derive a class which
    defines a handle() method.

    The handle() method can find the request as self.request, the
    client address as self.client_address, and the server (in case it
    needs access to per-server information) as self.server.  Since a
    separate instance is created for each request, the handle() method
    can define other arbitrary instance variables.

    c��||_||_||_|j�	|j	�|j�y#|j�wxYwrl)rQrR�server�setup�handle�finish)r#rQrRr�s    r$r%zBaseRequestHandler.__init__�sB�����,�������
�
��	��K�K�M��K�K�M��D�K�K�M�s�A�Ac��yrlr)r*s r$r�zBaseRequestHandler.setup�r�r&c��yrlr)r*s r$r�zBaseRequestHandler.handler�r&c��yrlr)r*s r$r�zBaseRequestHandler.finishr�r&N)rqrrrsrtr%r�r�r�r)r&r$r
r
�s��� �
�
�
r&r
c�,�eZdZdZdZdZdZdZd�Zd�Z	y)rz4Define self.rfile and self.wfile for stream sockets.r�rNFc��|j|_|j�%|jj|j�|jr9|jjtjtjd�|jjd|j�|_|jdk(rt|j�|_y|jjd|j�|_y)NT�rbr�wb)rQ�
connectionrB�
settimeout�disable_nagle_algorithmr�r@�IPPROTO_TCP�TCP_NODELAY�makefile�rbufsize�rfile�wbufsize�
_SocketWriter�wfiler*s r$r�zStreamRequestHandler.setup$s����,�,����<�<�#��O�O�&�&�t�|�|�4��'�'��O�O�&�&�v�'9�'9�'-�'9�'9�4�
A��_�_�-�-�d�D�M�M�B��
��=�=�A��&�t���7�D�J����1�1�$��
�
�F�D�Jr&c��|jjs	|jj�|jj�|jj�y#tj$rY�JwxYwrl)r�closed�flushr@�errorr�rr*s r$r�zStreamRequestHandler.finish1s`���z�z� � �
��
�
� � �"�
	
�
�
�����
�
������<�<�
��
�s�A'�'A=�<A=)
rqrrrsrtrr	rBrr�r�r)r&r$rrs+��>��H��H��G�$��G�	r&rc�(�eZdZdZd�Zd�Zd�Zd�Zy)r
z�Simple writable BufferedIOBase implementation for a socket

    Does not hold data in a buffer, avoiding any need to call flush().c��||_yrl)�_sock)r#�socks  r$r%z_SocketWriter.__init__As	����
r&c��y)NTr)r*s r$�writablez_SocketWriter.writableDs��r&c��|jj|�t|�5}|jcddd�S#1swYyxYwrl)r�sendall�
memoryview�nbytes)r#�b�views   r$�writez_SocketWriter.writeGs9���
�
���1��
��]�	�d��;�;�	�	�	�s	�=�Ac�6�|jj�Srl)rr�r*s r$r�z_SocketWriter.filenoLs���z�z� � �"�"r&N)rqrrrsrtr%rrr�r)r&r$r
r
<s��J����
#r&r
c��eZdZdZd�Zd�Zy)rz6Define self.rfile and self.wfile for datagram sockets.c��ddlm}|j\|_|_||j�|_|�|_y)Nr)�BytesIO)�ior rQ�packetr@rr)r#r s  r$r�zDatagramRequestHandler.setupSs0���#'�<�<� ���T�[��T�[�[�)��
��Y��
r&c��|jj|jj�|j�yrl)r@�sendtor�getvaluerRr*s r$r�zDatagramRequestHandler.finishYs)�������4�:�:�.�.�0�$�2E�2E�Fr&N)rqrrrsrtr�r�r)r&r$rrOs��@��Gr&r)'rt�__version__r@r1r�rgrr!rrDr�__all__r��extendrr/�SelectSelectorrrrr�listr�r�r
rrrr	rrrrrrr
rr
rr)r&r$�<module>r+s���v�t����	�
���"�7���2�v���N�N�J�K�
�6�9���N�N�3�4��r�6�����1�3N�O�P��9�n�%��,�,�O��.�.�O�j�j�Z@�
�@�F
�	�
�8�2�v��U@�U@�pC�t�C�,
�
�%�%�P�2�v��9�<��9�9�<��9�9���9�9���9�
�6�9��(�9�(�(�Y�(�L�N�4D�K�O�n�6H�O��r�6��K�l�4D�K�O��6H�O�#
�#
�\+�-�+�Z#�N�#�&G�/�Gr&

Zerion Mini Shell 1.0