Exemplo n.º 1
0
Arquivo: testbed.py Projeto: qyb/sohu
 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