def init_protocol(self): self.ipc = IPC(('localhost', 6000)) if not self.ipc: self.logger.error("IPC protocol module load failed.") return False if not self.ipc.loop(): self.logger.error("IPC protocol module running exceptionally.") return False return True