Class: Dizby::SecureProtocol

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

Defined Under Namespace

Classes: DirectTunnel, ResponseTunnel

Class Method Summary collapse

Methods included from BasicProtocol

included

Class Method Details

.delegatable_tunnel(factory, server, tunnel)


52
53
54
55
56
57
58
# File 'lib/dizby/protocols/secure.rb', line 52

def self.delegatable_tunnel(factory, server, tunnel)
  if factory.bidirectional?
    ResponseTunnel.new(server, tunnel)
  else
    DirectTunnel.new(server, tunnel)
  end
end