Class: HTTPX::Plugins::Proxy::Socks4::SocksParser

Inherits:
Object
  • Object
show all
Includes:
Callbacks
Defined in:
lib/httpx/plugins/proxy/socks4.rb

Instance Method Summary collapse

Methods included from Callbacks

#emit, #on, #once

Constructor Details

#initialize(buffer, options) ⇒ SocksParser

Returns a new instance of SocksParser.



74
75
76
77
# File 'lib/httpx/plugins/proxy/socks4.rb', line 74

def initialize(buffer, options)
  @buffer = buffer
  @options = Options.new(options)
end

Instance Method Details

#<<(packet) ⇒ Object



87
88
89
# File 'lib/httpx/plugins/proxy/socks4.rb', line 87

def <<(packet)
  emit(:packet, packet)
end

#closeObject



79
# File 'lib/httpx/plugins/proxy/socks4.rb', line 79

def close; end

#consumeObject



81
# File 'lib/httpx/plugins/proxy/socks4.rb', line 81

def consume(*); end

#empty?Boolean

Returns:

  • (Boolean)


83
84
85
# File 'lib/httpx/plugins/proxy/socks4.rb', line 83

def empty?
  true
end