7 PROXY_TYPE_HTTP_NO_TUNNEL: int
9 class ProxyError(Exception): ...
10 class GeneralProxyError(ProxyError): ...
11 class Socks5AuthError(ProxyError): ...
12 class Socks5Error(ProxyError): ...
13 class Socks4Error(ProxyError): ...
14 class HTTPError(ProxyError): ...
17 proxytype: Any | None = ...,
18 addr: Any | None = ...,
19 port: Any | None = ...,
21 username: Any | None = ...,
22 password: Any | None = ...,
24 def wrapmodule(module) -> None: ...
26 class socksocket(socket.socket):
27 def __init__(self, family=..., type=..., proto: int = ..., _sock: Any | None = ...) -> None: ...
28 def sendall(self, content, *args): ...
31 proxytype: Any | None = ...,
32 addr: Any | None = ...,
33 port: Any | None = ...,
35 username: Any | None = ...,
36 password: Any | None = ...,
37 headers: Any | None = ...,
39 def getproxysockname(self): ...
40 def getproxypeername(self): ...
41 def getpeername(self): ...
42 def connect(self, destpair) -> None: ...