Class: SocksTunnel::Remote::Connection

Inherits:
EventMachine::Connection
  • Object
show all
Defined in:
lib/socks_tunnel/remote.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#serverObject

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

#unbindObject



18
19
20
# File 'lib/socks_tunnel/remote.rb', line 18

def unbind
  @server.close_connection_after_writing
end