예제 #1
0
 def run(self):
     self._logger.debug('[SMTPSensor]: entering run')
     asyncore.loop()  # pylint: disable=no-member
예제 #2
0
 def run(self):
     self._logger.debug('[SMTPSensor]: entering run')
     asyncore.loop()
예제 #3
0
 def run(self):
     self._logger.debug('[SMTPSensor]: entering run')
     asyncore.loop()  # pylint: disable=no-member
예제 #4
0
 def receive(self):
     while self._running:
         m = {}
         _ = TCPServer((self._ip, self._port), self, m)
         asyncore.loop(map=m)
예제 #5
0
 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
예제 #6
0
 def loop(self, send_id):
     asyncore.loop(map=AsyncTCPSenderPool.maps[send_id])
     del AsyncTCPSenderPool.maps[send_id]