Class: Dizby::SecureProtocol::ResponseTunnel

Inherits:
DirectTunnel show all
Defined in:
lib/dizby/protocols/secure.rb

Instance Method Summary collapse

Methods inherited from DirectTunnel

#close

Methods inherited from Delegator

#__undelegated_get__, #__undelegated_set__, #instance_variable_get, #instance_variable_set, #method_missing

Constructor Details

#initialize(server, tunnel) ⇒ ResponseTunnel

Returns a new instance of ResponseTunnel.


75
76
77
78
79
# File 'lib/dizby/protocols/secure.rb', line 75

def initialize(server, tunnel)
  super(server, tunnel)

  @remote_port = tunnel.remote_port
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Dizby::Delegator

Instance Method Details

#uri

overload the uri of the server


81
82
83
84
# File 'lib/dizby/protocols/secure.rb', line 81

def uri # overload the uri of the server
  # we use the drb protocol for the rebound connection
  "drb://localhost:#{@remote_port}"
end