The server module contains the necessary classes for creating a concrete connection which is responsible for managing the connection between pysiriproxy and Apple’s web server.
The ConnectionManager object managers incoming connection directions and provides the ability to forward data between them.
It allows a connection direction to be connected to an opposite connection direction which allows data to be forwarded from the direction to the connected direction.
Add a connection to our set of connections.
Remove a directed connection from our set of connections.
Forward the data from one connection to another.
Get the connection for the specific direction.
Get the formatted name of the forward direction for the given direction.
Get the most recently used reference id for the connection with the given direction.
Determine if there is a connection to forward data to.
Inject an object into the connection with the given direction.
Reset all of the connections that are being managed.
Set the ref id for the forward connection.
The Connection class implements the base functionaltiy for creating a concrete twisted internet protocol which is able to receive data in the form of lines.
This base class implements the functionality of receiving data from the iPhone or from Apple’s web server. The iPhone Apple’s web server transmit plist objects which are compressed using zlib compression. This class implements the necessary functionality for receiving the data, and decompressing it to retrieve the plist object data that is being transmitted.
The Connection objects are connected to the connections.ConnectionManager which provides the ability for one Connection to forward data to another Connection.
Note
This class is intended to be subclassed to create a connection between two specific machines.
This function is called when a connection failed.
This function is called when a connection is lost.
This function is called when a connection is made.
Get the ConnectionManager object for this Connection.
Get the direction for this connection.
Get the current receiving mode the server is in.
Get the most recently used reference id.
Inject the given object into the output stream of this connection. This effectively sends the object to the foward destination connection for this connection.
This function is called when a line of data is received.
This function is called when raw data is received.
Reset this connection.
Set the server to receive lines.
Set the server to receive raw data.
Set the reference id.