Changeset 56 for remote_control
- Timestamp:
- 06/21/10 10:33:40 (12 years ago)
- Location:
- remote_control
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
remote_control/puzzlebox_brainstorms_client_thinkgear.py
r55 r56 9 9 # For more information please refer to http://www.gnu.org/copyleft/gpl.html 10 10 # 11 # Last Update: 2010.06. 1811 # Last Update: 2010.06.21 12 12 # 13 13 ##################################################################### … … 40 40 THINKGEAR_PARAMETERS = {"enableRawOutput": False, "format": "Json"} 41 41 #THINKGEAR_PARAMETERS = {"enableRawOutput": True, "format": "Json"} 42 #THINKGEAR_PARAMETERS = configuration.FLASH_POLICY_FILE_REQUEST 42 43 43 44 ##################################################################### … … 156 157 print line 157 158 158 159 if self.DEBUG: 160 if ('rawEeg' in data.keys()): 161 if self.DEBUG > 1: 159 else: 160 if self.DEBUG: 161 if ('rawEeg' in data.keys()): 162 if self.DEBUG > 1: 163 print "data:", 164 print data 165 else: 162 166 print "data:", 163 167 print data 164 else:165 print "data:",166 print data167 168 168 169 -
remote_control/puzzlebox_brainstorms_configuration.py
r55 r56 190 190 ##################################################################### 191 191 192 FLASH_POLICY_FILE_REQUEST = '<policy-file-request/>' 192 FLASH_POLICY_FILE_REQUEST = \ 193 '<policy-file-request/>%c' % 0 # NULL byte termination 193 194 FLASH_SOCKET_POLICY_FILE = '''<?xml version="1.0"?> 194 195 <!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd"> 195 196 <cross-domain-policy> 196 <site-control permitted-cross-domain-policies=" master-only" />197 <site-control permitted-cross-domain-policies="all" /> 197 198 <allow-access-from domain="*" to-ports="%i" /> 198 </cross-domain-policy> 199 ''' % THINKGEAR_SERVER_PORT 199 </cross-domain-policy>%c''' % (THINKGEAR_SERVER_PORT, 0) 200 200 201 201 ##################################################################### -
remote_control/puzzlebox_brainstorms_server_thinkgear.py
r55 r56 110 110 111 111 # Special socket handling for Flash applications 112 if (data .startswith(FLASH_POLICY_FILE_REQUEST)):112 if (data == FLASH_POLICY_FILE_REQUEST): 113 113 response = FLASH_SOCKET_POLICY_FILE 114 114 … … 222 222 223 223 # Special socket handling for Flash applications 224 if (data_received.startswith( \ 225 FLASH_POLICY_FILE_REQUEST)): 224 if (data_received == FLASH_POLICY_FILE_REQUEST): 226 225 227 226 if self.DEBUG: … … 255 254 # Special socket handling for Flash applications 256 255 if (response == FLASH_SOCKET_POLICY_FILE): 257 ##self.sendLine(response)258 self.transport.write(response)256 self.sendLine(response) 257 ## self.transport.write(response) 259 258 else: 260 259 response = json.dumps(response)
Note: See TracChangeset
for help on using the changeset viewer.