Method: EventMachine::Protocols::Socks5#initialize

Defined in:
lib/blather/core_ext/eventmachine.rb

#initialize(host, port) ⇒ Socks5

Returns a new instance of Socks5.



23
24
25
26
27
28
29
30
31
# File 'lib/blather/core_ext/eventmachine.rb', line 23

def initialize(host, port)
  @host = host
  @port = port
  @socks_error_code = nil
  @buffer = ''
  @socks_state = :method_negotiation
  @socks_methods = [0] # TODO: other authentication methods
  setup_methods
end