Class: Dizby::SecureProtocol::DirectTunnel

Inherits:
Delegator
  • Object
show all
Defined in:
lib/dizby/protocols/secure.rb

Direct Known Subclasses

ResponseTunnel

Instance Method Summary collapse

Methods inherited from Delegator

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

Constructor Details

#initialize(server, tunnel) ⇒ DirectTunnel

Returns a new instance of DirectTunnel.


63
64
65
66
67
# File 'lib/dizby/protocols/secure.rb', line 63

def initialize(server, tunnel)
  super(server)

  @tunnel = tunnel
end

Dynamic Method Handling

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

Instance Method Details

#close


69
70
71
72
73
# File 'lib/dizby/protocols/secure.rb', line 69

def close
  @tunnel.close
  super
  @tunnel.thread.join
end