Class: HTTPX::Plugins::Proxy::Socks4::SocksParser
- Inherits:
-
Object
- Object
- HTTPX::Plugins::Proxy::Socks4::SocksParser
show all
- Includes:
- Callbacks
- Defined in:
- lib/httpx/plugins/proxy/socks4.rb
Instance Method Summary
collapse
Methods included from Callbacks
#callbacks_for?, #emit, #on, #once, #only
Constructor Details
#initialize(buffer, options) ⇒ SocksParser
Returns a new instance of SocksParser.
84
85
86
87
|
# File 'lib/httpx/plugins/proxy/socks4.rb', line 84
def initialize(buffer, options)
@buffer = buffer
@options = Options.new(options)
end
|
Instance Method Details
#<<(packet) ⇒ Object
101
102
103
|
# File 'lib/httpx/plugins/proxy/socks4.rb', line 101
def <<(packet)
emit(:packet, packet)
end
|
#close ⇒ Object
93
|
# File 'lib/httpx/plugins/proxy/socks4.rb', line 93
def close; end
|
#consume ⇒ Object
95
|
# File 'lib/httpx/plugins/proxy/socks4.rb', line 95
def consume(*); end
|
#empty? ⇒ Boolean
97
98
99
|
# File 'lib/httpx/plugins/proxy/socks4.rb', line 97
def empty?
true
end
|
#timeout ⇒ Object
89
90
91
|
# File 'lib/httpx/plugins/proxy/socks4.rb', line 89
def timeout
@options.timeout[:operation_timeout]
end
|