o
    �õ±jY  ã                   @   s:   d dl Z d dlmZmZ d dlmZmZ G dd„ dƒZdS )é    N)ÚurlparseÚparse_qs)ÚSocksServerVersionÚSocksProtocolc                   @   s4   e Zd Zdd„ Zdd„ Zdd„ Zdd„ Zd	d
„ ZdS )ÚSocksTargetc                 C   s‚   d | _ d | _d | _d| _tj| _d| _d| _d | _	t
 d¡ ¡  d¡| _d | _d| _d | _d | _d | _d | _d| _d| _d| _d S )NFé
   i   é   Úascii)ÚversionÚ	server_ipÚserver_portÚis_bindr   ÚTCPÚprotoÚtimeoutÚbuffer_sizeÚssl_ctxÚosÚurandomÚhexÚencodeÚuseridÚagentidÚwsnet_reuseÚendpoint_ipÚendpoint_portÚendpoint_timeoutÚ
credentialÚ	only_openÚ	only_authÚ	only_bind©Úself© r#   ú‰/root/aizidognhua/tmp/workspace/projects/ec89d86c-575f-41c9-af57-ac45cbdbf775/venv/lib/python3.10/site-packages/asysocks/common/target.pyÚ__init__   s$   
zSocksTarget.__init__c                 C   ó   d| j | jf S ©Nz%s:%s)r   r   r!   r#   r#   r$   Ú	get_sname   ó   zSocksTarget.get_snamec                 C   r&   r'   )r   r   r!   r#   r#   r$   Ú	get_tname"   r)   zSocksTarget.get_tnamec                 C   s
   t | jƒS ©N)ÚstrÚ__dict__r!   r#   r#   r$   Ú__repr__%   s   
zSocksTarget.__repr__c                 C   s   t | ƒS r+   )Úreprr!   r#   r#   r$   Ú__str__(   s   zSocksTarget.__str__N)Ú__name__Ú
__module__Ú__qualname__r%   r(   r*   r.   r0   r#   r#   r#   r$   r      s    r   )r   Úurllib.parser   r   Úasysocks.common.constantsr   r   r   r#   r#   r#   r$   Ú<module>   s   