Class: SiriProxy::Connection::Guzzoni
- Inherits:
-
SiriProxy::Connection
- Object
- EventMachine::Connection
- SiriProxy::Connection
- SiriProxy::Connection::Guzzoni
- 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
- #block_rest_of_session ⇒ Object
- #connection_completed ⇒ Object
-
#initialize ⇒ Guzzoni
constructor
A new instance of Guzzoni.
- #received_object(object) ⇒ Object
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
#initialize ⇒ Guzzoni
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_session ⇒ Object
21 22 23 |
# File 'lib/siriproxy/connection/guzzoni.rb', line 21 def block_rest_of_session @block_rest_of_session = true end |
#connection_completed ⇒ Object
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 |