Esempio n. 1
0
 def __init__(self, factory ):
     LineReceiver.__init__(self)
     self.__factory=factory
     self.__parts=factory.parts
     self.setLineMode()
     self.__current_command_id: int = 3
     self.__issued_command_storage = {}
     self.__commandRE = re.compile('(\[(\S+)\])?([\S]+)\.(\S+)\((.*)\)')
     self.delimiter = b'\r'
     self.__parts['sys'] = FunctionCaller('sys')
Esempio n. 2
0
 def __init__(self, factory):
     LineReceiver.__init__(self)
     self.delimiter = b'\r'
     self.__factory = factory
     self.__parts = factory.parts
     #Observable.__init__(self, 'tcp')
     #self.setLineMode()
     #self.decoding_talker = compose(self.say_array, self.codec)
     #self.add_listener("cmd", self.process_result)
     self.__current_command_id: int = 3
     self.__issued_command_storage = {}
     self.__commandRE = re.compile('(\[(\S+)\])?([\S]+)\.(\S+)\((.*)\)')