o
    j!                     @   s   G d d dZ dS )c                   @   s,   e Zd Zdd Zdd Zdd Zdd Zd	S )

TrafficLogc                 C   sF   d | _ d | _d | _d | _d | _d | _d | _d | _d | _d| _	d | _
d S )NF)	client_ipclient_portdestination_ipdestination_hostnamedestination_port
session_id	directionmodule
srv_moduleis_ssldataself r   /root/aizidognhua/tmp/workspace/projects/ec89d86c-575f-41c9-af57-ac45cbdbf775/venv/lib/python3.10/site-packages/asysocks/common/trafficlog.py__init__   s   
zTrafficLog.__init__c                 C   s   | j d u r| jS | j S N)r   r   r   r   r   r   get_dst_hostname   s   
zTrafficLog.get_dst_hostnamec              	   C   s8   d| j | j| j| j| j| jdrdnd|  | jf S )Nz[%s][%s][%s][%s:%s %s %s:%s] c2dz->z<-)	r
   r	   r   r   r   r   
startswithr   r   r   r   r   r   
get_header   s   zTrafficLog.get_headerc                 C   s   |   t| j S r   )r   strr   r   r   r   r   __str__"   s   zTrafficLog.__str__N)__name__
__module____qualname__r   r   r   r   r   r   r   r   r      s
    r   N)r   r   r   r   r   <module>   s   