Class: SiriProxy::Connection::Guzzoni

Inherits:
SiriProxy::Connection show all
Defined in:
lib/siriproxy/connection/guzzoni.rb

Overview

This is the connection to the Guzzoni (the Siri server backend)

Instance Attribute Summary

Attributes inherited from SiriProxy::Connection

#consumed_ace, #input_buffer, #last_ref_id, #name, #other_connection, #output_buffer, #plugin_manager, #processed_headers, #ssled, #unzip_stream, #unzipped_input, #unzipped_output, #zip_stream

Instance Method Summary collapse

Methods inherited from SiriProxy::Connection

#flush_output_buffer, #flush_unzipped_output, #has_next_object?, #inject_object_to_output_stream, #parse_object, #post_init, #prep_received_object, #process_compressed_data, #read_next_object_from_unzipped, #receive_binary_data, #receive_line, #ssl_handshake_completed

Constructor Details

#initializeGuzzoni

Returns a new instance of Guzzoni.



5
6
7
8
# File 'lib/siriproxy/connection/guzzoni.rb', line 5

def initialize
  super
  self.name = "Guzzoni"
end

Instance Method Details

#block_rest_of_sessionObject



21
22
23
# File 'lib/siriproxy/connection/guzzoni.rb', line 21

def block_rest_of_session 
  @block_rest_of_session = true
end

#connection_completedObject



10
11
12
13
# File 'lib/siriproxy/connection/guzzoni.rb', line 10

def connection_completed
  super
  start_tls(:verify_peer => false)
end

#received_object(object) ⇒ Object



15
16
17
18
19
# File 'lib/siriproxy/connection/guzzoni.rb', line 15

def received_object(object)		
  return plugin_manager.process_filters(object, :from_guzzoni)

  #plugin_manager.object_from_guzzoni(object, self)
end