Class: Remailer::SOCKS5::Client::Interpreter
- Inherits:
-
Interpreter
- Object
- Interpreter
- Remailer::SOCKS5::Client::Interpreter
- Defined in:
- lib/remailer/socks5/client/interpreter.rb
Constant Summary collapse
- SOCKS5_VERSION =
RFC1928 and RFC1929 define these values
5
- SOCKS5_METHOD =
{ no_auth: 0, gssapi: 1, username_password: 2 }.freeze
- SOCKS5_COMMAND =
{ connect: 1, bind: 2 }.freeze
- SOCKS5_REPLY =
{ 0 => 'Succeeded', 1 => 'General SOCKS server failure', 2 => 'Connection not allowed', 3 => 'Network unreachable', 4 => 'Host unreachable', 5 => 'Connection refused', 6 => 'TTL expired', 7 => 'Command not supported', 8 => 'Address type not supported' }.freeze
- SOCKS5_ADDRESS_TYPE =
{ ipv4: 1, domainname: 3, ipv6: 4 }.freeze
Instance Attribute Summary
Attributes inherited from Interpreter
Instance Method Summary collapse
- #finished? ⇒ Boolean
-
#label ⇒ Object
Instance Methods =====================================================.
Methods inherited from Interpreter
config, create_parser_for_spec, default, default_interpreter, default_parser, #enter_state, #error?, initial_state, initial_state=, #initialize, #interpret, on_error, on_error_handler, parse, #parse, #parser, #process, state, state_defined?, states, states_default, states_defined, states_empty?, #will_interpret?
Constructor Details
This class inherits a constructor from Remailer::Interpreter
Instance Method Details
#finished? ⇒ Boolean
194 195 196 |
# File 'lib/remailer/socks5/client/interpreter.rb', line 194 def finished? self.state == :connected end |
#label ⇒ Object
Instance Methods =====================================================
190 191 192 |
# File 'lib/remailer/socks5/client/interpreter.rb', line 190 def label 'SOCKS5' end |