The packetPlayer module
Contains the Player class.
The Player class
-
class pysiriproxy.packetPlayer.Player(protocol, filename, logger)[source]
The Player class loads a file containing data which it proceeds
to send to the given protocol class using the same interface used
to handle connections to the server. This allows us to save incoming
data to the server and replay it for testing purposes.
-
onCycle(i)[source]
Called during each cycle of the thread.
-
onException(e, traceback)[source]
An exception occurred.
- e – The exception
- traceback – The traceback
-
onShutdown()[source]
Called in the event that the thread is shutdown.