Changeset 52 for remote_control/puzzlebox_brainstorms_client_thinkgear.py
- Timestamp:
- 06/17/10 14:35:37 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
remote_control/puzzlebox_brainstorms_client_thinkgear.py
r51 r52 117 117 ################################################################## 118 118 119 ##def connectionMade(self):120 ##121 ###data = pickle.dumps(self.factory.command)122 ##data = json.dumps(self.factory.command)123 ##self.transport.write(data)124 ##125 ##self.factory.noReply = reactor.callLater(NO_REPLY_WAIT, self.noReply)126 127 128 ################################################################## 129 130 ##def noReply(self):131 ##132 ##try:133 ##self.factory.replyDefer.callback('NO_REPLY')134 ##except:135 ##if self.DEBUG:136 ##print "noReply failed to call callback"137 ###self.factory.log.error("noReply failed to call callback")138 ##139 ##self.transport.loseConnection()119 def connectionMade(self): 120 121 #data = pickle.dumps(self.factory.command) 122 data = json.dumps(self.factory.command) 123 self.transport.write(data) 124 125 self.factory.noReply = reactor.callLater(NO_REPLY_WAIT, self.noReply) 126 127 128 ################################################################## 129 130 def noReply(self): 131 132 try: 133 self.factory.replyDefer.callback('NO_REPLY') 134 except: 135 if self.DEBUG: 136 print "noReply failed to call callback" 137 #self.factory.log.error("noReply failed to call callback") 138 139 self.transport.loseConnection() 140 140 141 141
Note: See TracChangeset
for help on using the changeset viewer.