Class: Excon::SOCKS5SSLSocket
- Includes:
- SOCKS5
- Defined in:
- lib/excon/socks5_ssl_socket.rb
Constant Summary
Constants included from SOCKS5
Excon::SOCKS5::MAX_HOSTNAME_LENGTH, Excon::SOCKS5::SOCKS5_ATYP_DOMAIN, Excon::SOCKS5::SOCKS5_ATYP_IPV4, Excon::SOCKS5::SOCKS5_ATYP_IPV6, Excon::SOCKS5::SOCKS5_AUTH_USERNAME_PASSWORD, Excon::SOCKS5::SOCKS5_CMD_CONNECT, Excon::SOCKS5::SOCKS5_ERRORS, Excon::SOCKS5::SOCKS5_NO_ACCEPTABLE_AUTH, Excon::SOCKS5::SOCKS5_NO_AUTH, Excon::SOCKS5::SOCKS5_RESERVED, Excon::SOCKS5::SOCKS5_SUCCESS, Excon::SOCKS5::SOCKS5_VERSION
Constants inherited from SSLSocket
Excon::SSLSocket::HAVE_NONBLOCK
Constants inherited from Socket
Excon::Socket::CONNECT_RETRY_EXCEPTION_CLASSES, Excon::Socket::OPERATION_TO_TIMEOUT, Excon::Socket::READ_RETRY_EXCEPTION_CLASSES, Excon::Socket::WRITE_RETRY_EXCEPTION_CLASSES
Constants included from Utils
Utils::CONTROL, Utils::DELIMS, Utils::ESCAPED, Utils::NONASCII, Utils::UNESCAPED, Utils::UNWISE
Instance Attribute Summary
Attributes inherited from Socket
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ SOCKS5SSLSocket
constructor
A new instance of SOCKS5SSLSocket.
Methods inherited from Socket
#local_address, #local_port, #params, #params=, #read, #readline, #write
Methods included from Utils
binary_encode, connection_uri, default_port?, escape_uri, headers_hash_to_s, port_string, query_string, redact, request_uri, split_header_value, unescape_form, unescape_uri
Constructor Details
#initialize(data = {}) ⇒ SOCKS5SSLSocket
Returns a new instance of SOCKS5SSLSocket.
7 8 9 10 11 |
# File 'lib/excon/socks5_ssl_socket.rb', line 7 def initialize(data = {}) @socks5_proxy = data[:socks5_proxy] @proxy_host, @proxy_port, @proxy_user, @proxy_pass = parse_socks5_proxy(@socks5_proxy) super(data) end |