proxy.socks.handler module#

proxy.py#

⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on Network monitoring, controls & Application development, testing, debugging.

copyright
  1. 2013-present by Abhinav Singh and contributors.

license

BSD, see LICENSE for more details.

class proxy.socks.handler.SocksProtocolHandler(*args: Any, **kwargs: Any)[source]#

Bases: proxy.core.base.tcp_server.BaseTcpServerHandler[proxy.socks.client.SocksClientConnection]

Reference https://www.openssh.com/txt/socks4.protocol

_abc_impl = <_abc._abc_data object>#
static create(*args: Any) proxy.socks.client.SocksClientConnection[source]#

Implementations are responsible for creation of work objects from incoming args. This helps keep work core agnostic to creation of externally defined work class objects.

handle_data(data: memoryview) Optional[bool][source]#

Optionally return True to close client connection.

uid: str#