|
|
@@ -175,21 +175,21 @@ class ConnectionRepository(DirectObject.DirectObject, CConnectionRepository):
|
|
|
known.
|
|
|
"""
|
|
|
|
|
|
-## if self.recorder and self.recorder.isPlaying():
|
|
|
+ ## if self.recorder and self.recorder.isPlaying():
|
|
|
|
|
|
-## # If we have a recorder and it's already in playback mode,
|
|
|
-## # don't actually attempt to connect to a gameserver since
|
|
|
-## # we don't need to. Just let it play back the data.
|
|
|
-## self.notify.info("Not connecting to gameserver; using playback data instead.")
|
|
|
+ ## # If we have a recorder and it's already in playback mode,
|
|
|
+ ## # don't actually attempt to connect to a gameserver since
|
|
|
+ ## # we don't need to. Just let it play back the data.
|
|
|
+ ## self.notify.info("Not connecting to gameserver; using playback data instead.")
|
|
|
|
|
|
-## self.connectHttp = 1
|
|
|
-## self.tcpConn = SocketStreamRecorder()
|
|
|
-## self.recorder.addRecorder('gameserver', self.tcpConn)
|
|
|
+ ## self.connectHttp = 1
|
|
|
+ ## self.tcpConn = SocketStreamRecorder()
|
|
|
+ ## self.recorder.addRecorder('gameserver', self.tcpConn)
|
|
|
|
|
|
-## self.startReaderPollTask()
|
|
|
-## if successCallback:
|
|
|
-## successCallback(*successArgs)
|
|
|
-## return
|
|
|
+ ## self.startReaderPollTask()
|
|
|
+ ## if successCallback:
|
|
|
+ ## successCallback(*successArgs)
|
|
|
+ ## return
|
|
|
|
|
|
hasProxy = 0
|
|
|
if self.checkHttp():
|
|
|
@@ -252,22 +252,22 @@ class ConnectionRepository(DirectObject.DirectObject, CConnectionRepository):
|
|
|
if ch.isConnectionReady():
|
|
|
self.setConnectionHttp(ch)
|
|
|
|
|
|
-## if self.recorder:
|
|
|
-## # If we have a recorder, we wrap the connect inside a
|
|
|
-## # SocketStreamRecorder, which will trap incoming data
|
|
|
-## # when the recorder is set to record mode. (It will
|
|
|
-## # also play back data when the recorder is in playback
|
|
|
-## # mode, but in that case we never get this far in the
|
|
|
-## # code, since we just create an empty
|
|
|
-## # SocketStreamRecorder without actually connecting to
|
|
|
-## # the gameserver.)
|
|
|
-## stream = SocketStreamRecorder(self.tcpConn, 1)
|
|
|
-## self.recorder.addRecorder('gameserver', stream)
|
|
|
-
|
|
|
-## # In this case, we pass ownership of the original
|
|
|
-## # connection to the SocketStreamRecorder object.
|
|
|
-## self.tcpConn.userManagesMemory = 0
|
|
|
-## self.tcpConn = stream
|
|
|
+ ## if self.recorder:
|
|
|
+ ## # If we have a recorder, we wrap the connect inside a
|
|
|
+ ## # SocketStreamRecorder, which will trap incoming data
|
|
|
+ ## # when the recorder is set to record mode. (It will
|
|
|
+ ## # also play back data when the recorder is in playback
|
|
|
+ ## # mode, but in that case we never get this far in the
|
|
|
+ ## # code, since we just create an empty
|
|
|
+ ## # SocketStreamRecorder without actually connecting to
|
|
|
+ ## # the gameserver.)
|
|
|
+ ## stream = SocketStreamRecorder(self.tcpConn, 1)
|
|
|
+ ## self.recorder.addRecorder('gameserver', stream)
|
|
|
+
|
|
|
+ ## # In this case, we pass ownership of the original
|
|
|
+ ## # connection to the SocketStreamRecorder object.
|
|
|
+ ## self.tcpConn.userManagesMemory = 0
|
|
|
+ ## self.tcpConn = stream
|
|
|
|
|
|
self.startReaderPollTask()
|
|
|
if successCallback:
|