Your IP : 18.227.52.111
�
�Q�f� � � � d dl Z G d� d� Zy)� Nc � � e Zd ZdZdZdej
fd�Zed� � Zed� � Z ed� � Z
d� Zd � Zd
� Z
d� Zd� Zd
� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zy)�TransportSocketz�A socket-like wrapper for exposing real transport sockets.
These objects can be safely returned by APIs like
`transport.get_extra_info('socket')`. All potentially disruptive
operations (like "socket.close()") are banned.
��_sock�sockc � � || _ y �Nr )�selfr s �5/opt/alt/python312/lib64/python3.12/asyncio/trsock.py�__init__zTransportSocket.__init__ s � ���
� c �. � | j j S r )r �family�r
s r r zTransportSocket.family s � ��z�z� � � r
c �. � | j j S r )r �typer s r r zTransportSocket.type s � ��z�z���r
c �. � | j j S r )r �protor s r r zTransportSocket.proto s � ��z�z���r
c �r � d| j � � d| j �d| j �d| j � �}| j � dk7 r4 | j � }|r|� d|� �} | j � }|r|� d|� �}|� d�S # t
j $ r Y �4w xY w# t
j $ r Y �3w xY w) Nz<asyncio.TransportSocket fd=z , family=z, type=z, proto=���z, laddr=z, raddr=�>)�filenor r r �getsockname�socket�error�getpeername)r
�s�laddr�raddrs r �__repr__zTransportSocket.__repr__ s� � �*�4�;�;�=�/� :��k�k�_�G�D�I�I�=� 9��Z�Z�L�
"�
� �;�;�=�B��
��(�(�*����#�X�e�W�-�A�
��(�(�*����#�X�e�W�-�A� ��A�w��� �<�<�
��
�� �<�<�
��
�s$ �B �)B �B�B� B6�5B6c � � t d� �)Nz/Cannot serialize asyncio.TransportSocket object)� TypeErrorr s r �__getstate__zTransportSocket.__getstate__5 s � ��I�J�Jr
c �6 � | j j � S r )r r r s r r zTransportSocket.fileno8 s � ��z�z� � �"�"r
c �6 � | j j � S r )r �dupr s r r&