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.


61
62
63
64
65
# File 'lib/dizby/protocols/secure.rb', line 61

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


67
68
69
70
71
# File 'lib/dizby/protocols/secure.rb', line 67

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