# File lib/em/protocols/socks4.rb, line 20 def initialize(host, port) @host = Socket.gethostbyname(host).last @port = port @socks_error_code = nil @buffer = '' setup_methods end