def run(self):
     self._logger.debug('[SMTPSensor]: entering run')
     asyncore.loop()  # pylint: disable=no-member
Exemple #2
0
 def run(self):
     self._logger.debug('[SMTPSensor]: entering run')
     asyncore.loop()
Exemple #3
0
 def run(self):
     self._logger.debug('[SMTPSensor]: entering run')
     asyncore.loop()  # pylint: disable=no-member
 def receive(self):
     while self._running:
         m = {}
         _ = TCPServer((self._ip, self._port), self, m)
         asyncore.loop(map=m)
 def send(self, message, send_id=None):
     LOG.debug('message to send %s to %s' % (message, self.address))
     c = TCPClient(self.address, message, self._map)
     if not send_id:
         asyncore.loop(map=self._map)
         return c.result
 def loop(self, send_id):
     asyncore.loop(map=AsyncTCPSenderPool.maps[send_id])
     del AsyncTCPSenderPool.maps[send_id]