Class: Shadowsocks::Parser::Local
- Defined in:
- lib/shadowsocks/parser/local.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#addr_to_send, #header_length, #initialize, #remote_addr, #remote_port
Constructor Details
This class inherits a constructor from Shadowsocks::Parser::Base
Instance Method Details
#addr_len ⇒ Object
8 9 10 11 12 |
# File 'lib/shadowsocks/parser/local.rb', line 8 def addr_len if mode == :domain data[4].unpack('c')[0] end end |
#addr_type ⇒ Object
4 5 6 |
# File 'lib/shadowsocks/parser/local.rb', line 4 def addr_type data[3] end |