Class: SocksTunnel::Remote::Connection
- Inherits:
-
EventMachine::Connection
- Object
- EventMachine::Connection
- SocksTunnel::Remote::Connection
- Defined in:
- lib/socks_tunnel/remote.rb
Instance Attribute Summary collapse
-
#server ⇒ Object
Returns the value of attribute server.
Instance Method Summary collapse
Instance Attribute Details
#server ⇒ Object
Returns the value of attribute server.
12 13 14 |
# File 'lib/socks_tunnel/remote.rb', line 12 def server @server end |
Instance Method Details
#receive_data(data) ⇒ Object
14 15 16 |
# File 'lib/socks_tunnel/remote.rb', line 14 def receive_data(data) @server.send_encoded_data(data) end |
#unbind ⇒ Object
18 19 20 |
# File 'lib/socks_tunnel/remote.rb', line 18 def unbind @server.close_connection_after_writing end |