Ignore:
Timestamp:
06/16/10 13:56:29 (11 years ago)
Author:
sc
Message:

client:

  • Switched to JSON from Pickle for message encodings
  • Fixed but with command line client not respecting custom server host/port settings

configuration.ini:

  • thinkgear server settings added

configuration.py

  • thinkgear server settings added

server:

  • Switched to JSON from Pickle for message encodings

client_thinkgear:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • remote_control/puzzlebox_brainstorms_server.py

    r43 r48  
    99# For more information please refer to http://www.gnu.org/copyleft/gpl.html 
    1010# 
    11 # Last Update: 2010.06.01 
     11# Last Update: 2010.06.16 
    1212# 
    1313##################################################################### 
    1414 
    1515import os, signal, sys, time 
    16 import cPickle as pickle 
     16#import cPickle as pickle 
     17import simplejson as json 
    1718 
    1819from twisted.internet import reactor, protocol, defer 
     
    131132                 
    132133                try: 
    133                         self.command = pickle.loads(self.data_chunk) 
     134                        #self.command = pickle.loads(self.data_chunk) 
     135                        self.command = json.loads(self.data_chunk) 
    134136                 
    135137                except Exception, e: 
     
    147149        def send_response(self, response): 
    148150                 
    149                 response = pickle.dumps(response) 
     151                #response = pickle.dumps(response) 
     152                response = json.dumps(response) 
    150153                 
    151154                self.transport.write(response) 
Note: See TracChangeset for help on using the changeset viewer.