def handle_update(self, code, code_msg, content): if code == SC_CLIENT_CALL_MORE: self.fcallstr += content return elif code == SC_CLIENT_CALL: self.fcallstr += content self.fretstr = searpc_server.call_function(self.name, self.fcallstr) self.fcallstr = '' self.send_fret() elif code == SC_CLIENT_MORE: self.send_fret()
def send(self, service, fcall_str): return searpc_server.call_function(service, fcall_str)