The guzzoni module
The guzzoni module contains the necessary classes for creating a concrete
connection which is responsible for managing the connection between
pysiriproxy and the Guzzoni web server.
The _Guzzoni class
-
class pysiriproxy.connections.guzzoni._Guzzoni(logger)[source]
The _Guzzoni class manages a connection to the Apple Guzzoni
server which proceses Siri requests and responds accordingly.
-
connectionMade()[source]
Called when the connection has been made successfully.
-
receiveObject(obj)[source]
Called when an object has been received.
- obj – The received object
The ClientTLSContext class
-
class pysiriproxy.connections.guzzoni.ClientTLSContext[source]
The ClientTLSContext class creates a concrete factory class responsible
for creating a client connection.
-
getContext()[source]
Get the context for this client connection.
-
isClient
Indicate that this is a client connection.
The _Factory class
-
class pysiriproxy.connections.guzzoni._Factory(logger=None)[source]
The _Factory class is responsible for creating a _Guzzoni connection.
This class implements the ReconnectingClientFactory so that it
will attempt to reconnect in the event that the connection is lost.
-
buildProtocol(_addr)[source]
Build the protocol for the _Guzzoni connection.