| Server IP : 195.114.193.97 / Your IP : 216.73.217.93 Web Server : LiteSpeed System : Linux host 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64 User : sembi4241 ( 1126) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/protocols/__pycache__/ |
Upload File : |
o
�b� � @ s� d Z ddlZddlZddlZddlZddlmZmZmZ ddl m
Z
G dd� dej�ZG dd� dej�Z
G d d
� d
ej�ZG dd� dej�ZG d
d� dej�ZdS )z)
Implementation of the SOCKSv4 protocol.
� N)�defer�protocol�reactor)�logc @ s4 e Zd Zdd� Zdd� Zdd� Zdd� Zd d
� ZdS )�SOCKSv4Outgoingc C �
|| _ d S �N)�socks��selfr � r �9/usr/lib/python3/dist-packages/twisted/protocols/socks.py�__init__ �
zSOCKSv4Outgoing.__init__c C s. | j �� }| jjdd|j|jd� | | j_d S )N�Z r )�port�ip)� transport�getPeerr � makeReplyr �host� otherConn)r �peerr r r
�connectionMade s
zSOCKSv4Outgoing.connectionMadec C � | j j�� d S r �r r �loseConnection�r �reasonr r r
�connectionLost � zSOCKSv4Outgoing.connectionLostc C � | j �|� d S r �r �write�r �datar r r
�dataReceived! r zSOCKSv4Outgoing.dataReceivedc C � | j �| |� | j�|� d S r �r r r r# r$ r r r
r# $ � zSOCKSv4Outgoing.writeN)�__name__�
__module__�__qualname__r r r r&