$63 GRAYBYTE WORDPRESS FILE MANAGER $88

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/lib/python3.6/site-packages/urllib3/contrib/__pycache__/

HOME
Current File : /lib/python3.6/site-packages/urllib3/contrib/__pycache__//socks.cpython-36.opt-1.pyc
3

nf�\��@s(dZddlmZyddlZWn6ek
rRddlZddlmZejde��YnXddl	m
ZmZ
ddlmZmZdd	lmZmZdd
lmZmZddlmZddlmZyddlZWnek
r�dZYnXGd
d�de�ZGdd�dee�ZGdd�de�ZGdd�de�ZGdd�de�ZdS)a�
This module contains provisional support for SOCKS proxies from within
urllib3. This module supports SOCKS4 (specifically the SOCKS4A variant) and
SOCKS5. To enable its functionality, either install PySocks or install this
module with the ``socks`` extra.

The SOCKS implementation supports the full range of urllib3 features. It also
supports the following SOCKS features:

- SOCKS4
- SOCKS4a
- SOCKS5
- Usernames and passwords for the SOCKS proxy

Known Limitations:

- Currently PySocks does not support contacting remote websites via literal
  IPv6 addresses. Any such connection attempt will fail. You must use a domain
  name.
- Currently PySocks does not support IPv6 connections to the SOCKS proxy. Any
  such connection attempt will fail.
�)�absolute_importN�)�DependencyWarningz�SOCKS support in urllib3 requires the installation of optional dependencies: specifically, PySocks.  For more information, see https://urllib3.readthedocs.io/en/latest/contrib.html#socks-proxies)�error�timeout)�HTTPConnection�HTTPSConnection)�HTTPConnectionPool�HTTPSConnectionPool)�ConnectTimeoutError�NewConnectionError)�PoolManager)�	parse_urlcs(eZdZdZ�fdd�Zdd�Z�ZS)�SOCKSConnectionzG
    A plain-text HTTP connection that connects via a SOCKS proxy.
    cs"|jd�|_tt|�j||�dS)N�_socks_options)�popr�superr�__init__)�self�args�kwargs)�	__class__��/usr/lib/python3.6/socks.pyr?szSOCKSConnection.__init__cCsXi}|jr|j|d<|jr$|j|d<yTtj|j|jff|jd|jd|jd|jd|jd|jd|jd	�|��}Wn�tk
r�}zt	|d
|j|jf��WYdd}~Xn�tj
k
�r"}zT|j�r|j}t|t�r�t	|d
|j|jf��nt
|d|��nt
|d|��WYdd}~Xn2tk
�rR}zt
|d|��WYdd}~XnX|S)
zA
        Establish a new connection via the SOCKS proxy.
        �source_address�socket_options�
socks_version�
proxy_host�
proxy_port�username�password�rdns)Z
proxy_typeZ
proxy_addrrZproxy_usernameZproxy_passwordZ
proxy_rdnsrz0Connection to %s timed out. (connect timeout=%s)Nz(Failed to establish a new connection: %s)rr�socksZcreate_connection�host�portrr�
SocketTimeoutrZ
ProxyErrorZ
socket_err�
isinstancer�SocketError)rZextra_kwZconn�errrr�	_new_connCsL

 
zSOCKSConnection._new_conn)�__name__�
__module__�__qualname__�__doc__rr)�
__classcell__rr)rrr;src@seZdZdS)�SOCKSHTTPSConnectionN)r*r+r,rrrrr/�sr/c@seZdZeZdS)�SOCKSHTTPConnectionPoolN)r*r+r,r�
ConnectionClsrrrrr0�sr0c@seZdZeZdS)�SOCKSHTTPSConnectionPoolN)r*r+r,r/r1rrrrr2�sr2cs,eZdZdZeed�Zd�fdd�	Z�ZS)�SOCKSProxyManagerzh
    A version of the urllib3 ProxyManager that routes connections via the
    defined SOCKS proxy.
    )ZhttpZhttpsN�
cs�t|�}|dkrB|dkrB|jdk	rB|jjd�}t|�dkrB|\}}|jdkrXtj}	d}
nN|jdkrntj}	d}
n8|jdkr�tj}	d}
n"|jdkr�tj}	d}
ntd	|��||_	|	|j
|j|||
d
�}||d<tt
|�j||f|�t
j|_dS)N�:rZsocks5FZsocks5hTZsocks4Zsocks4az)Unable to determine SOCKS version from %s)rrrrr r!r)rZauth�split�len�schemer"ZPROXY_TYPE_SOCKS5ZPROXY_TYPE_SOCKS4�
ValueError�	proxy_urlr#r$rr3r�pool_classes_by_scheme)rr:rr Z	num_poolsZheadersZconnection_pool_kwZparsedr6rr!Z
socks_options)rrrr�s<





zSOCKSProxyManager.__init__)NNr4N)	r*r+r,r-r0r2r;rr.rr)rrr3�s
r3) r-Z
__future__rr"�ImportError�warnings�
exceptionsr�warnZsocketrr'rr%Z
connectionrrZconnectionpoolr	r
rrZpoolmanagerr
Zutil.urlrZsslrr/r0r2r3rrrr�<module>s2
F


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
29 Jan 2026 9.08 PM
root / root
0755
__init__.cpython-36.opt-1.pyc
0.11 KB
28 Jan 2026 10.03 AM
root / root
0644
__init__.cpython-36.pyc
0.11 KB
28 Jan 2026 10.03 AM
root / root
0644
_appengine_environ.cpython-36.opt-1.pyc
0.985 KB
28 Jan 2026 10.03 AM
root / root
0644
_appengine_environ.cpython-36.pyc
0.985 KB
28 Jan 2026 10.03 AM
root / root
0644
appengine.cpython-36.opt-1.pyc
8.012 KB
28 Jan 2026 10.03 AM
root / root
0644
appengine.cpython-36.pyc
8.012 KB
28 Jan 2026 10.03 AM
root / root
0644
ntlmpool.cpython-36.opt-1.pyc
3.081 KB
28 Jan 2026 10.03 AM
root / root
0644
ntlmpool.cpython-36.pyc
3.081 KB
28 Jan 2026 10.03 AM
root / root
0644
pyopenssl.cpython-36.opt-1.pyc
14.101 KB
28 Jan 2026 10.03 AM
root / root
0644
pyopenssl.cpython-36.pyc
14.101 KB
28 Jan 2026 10.03 AM
root / root
0644
securetransport.cpython-36.opt-1.pyc
17.319 KB
28 Jan 2026 10.03 AM
root / root
0644
securetransport.cpython-36.pyc
17.391 KB
28 Jan 2026 10.03 AM
root / root
0644
socks.cpython-36.opt-1.pyc
4.706 KB
28 Jan 2026 10.03 AM
root / root
0644
socks.cpython-36.pyc
4.706 KB
28 Jan 2026 10.03 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF