Exemple #1
0
 def get_answer(self):
     '''Wait for client to provide input'''
     logger.info('Asking client...')
     msg = self.receive()
     logger.debug('Answer received: ' + msg)
     return msg
Exemple #2
0
 def get_answer(self):
     '''Wait for client to provide input'''
     logger.info('Asking client...')
     msg = self.receive()
     logger.debug('Answer received: ' + msg)
     return msg
Exemple #3
0
 def send(self, msg):
     '''Send already JSON-formatted message'''
     logger.debug('Sent a message ({} bytes)'.format(len(msg)))
     self.handler.send(msg)