Class: Fenris::ConsumerProvider

Inherits:
Connection
  • Object
show all
Defined in:
lib/fenris/connection.rb

Instance Method Summary collapse

Methods inherited from Connection

#initialize, #log, mkbinding, #proxy, #proxy_target_unbound, #push, #receive_data, #ssl_verify_peer, #unbind

Constructor Details

This class inherits a constructor from Fenris::Connection

Instance Method Details

#post_initObject



114
115
116
117
# File 'lib/fenris/connection.rb', line 114

def post_init
  log "Connection to the server made, starting ssl"
  start_tls :private_key_file => @client.my_key_path, :cert_chain_file => @client.cert_path(@peer_name), :verify_peer => true
end

#ssl_handshake_completedObject



119
120
121
122
# File 'lib/fenris/connection.rb', line 119

def ssl_handshake_completed
  log "SSL complete - start proxying"
  @peer_to_be.proxy self
end