![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /lib/python3/dist-packages/twisted/protocols/__pycache__/ |
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&