Class: Proxifier::SOCKSProxy

Inherits:
Proxy
  • Object
show all
Defined in:
lib/proxifier/proxies/socks.rb

Direct Known Subclasses

SOCKS4AProxy, SOCKS4Proxy

Constant Summary collapse

VERSION =
0x05

Instance Attribute Summary

Attributes inherited from Proxy

#options, #url

Instance Method Summary collapse

Methods inherited from Proxy

#initialize, #open, #proxify, #proxify?, proxify?, #query_options

Constructor Details

This class inherits a constructor from Proxifier::Proxy

Instance Method Details

#do_proxify(socket, host, port) ⇒ Object



8
9
10
11
12
# File 'lib/proxifier/proxies/socks.rb', line 8

def do_proxify(socket, host, port)
  authenticaton_method = greet(socket)
  authenticate(socket, authenticaton_method)
  connect(socket, host, port)
end