Hacked By AnonymousFox
�
c��f� � �( � d dl Z G d� d� � ZdS )� 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� ZdS )�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 � � || _ d S �Nr )�selfr s �5/opt/alt/python311/lib64/python3.11/asyncio/trsock.py�__init__zTransportSocket.__init__ s
� ���
�
�
� c � � | j j S r )r �family�r
s r r zTransportSocket.family s
� ��z� � r
c � � | j j S r )r �typer s r r zTransportSocket.type s � ��z��r
c � � | j j S r )r �protor s r r zTransportSocket.proto s
� ��z��r
c �j � d| � � � � d| j �d| j �d| j � �}| � � � dk rh | � � � }|r|� d|� �}n# t
j $ r Y nw xY w | � � � }|r|� d|� �}n# t
j $ r Y nw xY w|� d�S ) 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�
"�
"�,0�I�
"�
"��Z�
"�
"�
� �;�;�=�=�B���
��(�(�*�*��� .��-�-�e�-�-�A����<�
�
�
���
����
��(�(�*�*��� .��-�-�e�-�-�A����<�
�
�
���
���� �w�w�w�s$ � A'