Module socks

Source
Expand description

A wrapper around a TCP stream that handles the SOCKS5 handshake. This module only drives the handshake and returns the stream back to the caller. It does not perform any I/O on the stream after the handshake is complete. The caller is responsible for performing I/O on the stream. This module is built on top of the futures crate instead of an specific async runtime. This allows the caller to use this module with any async runtime they want.

Structsยง

Socks5StreamBuilder

Enumsยง

Socks5Addr
Socks5Error

Constantsยง

SOCKS_ADDR_TYPE_DOMAIN ๐Ÿ”’
Magic value to indicate a domain address.
SOCKS_ADDR_TYPE_IPV4 ๐Ÿ”’
Magic value to indicate an IPv4 address.
SOCKS_ADDR_TYPE_IPV6 ๐Ÿ”’
Magic value to indicate an IPv6 address.
SOCKS_AUTH_METHOD_NONE ๐Ÿ”’
The SOCKS authentication method we support, only no authentication is supported.
SOCKS_CMD_CONNECT ๐Ÿ”’
The cmd value for a SOCKS5 connect request.
SOCKS_VERSION ๐Ÿ”’
The version of the SOCKS protocol we support, only SOCKS5 is supported.