Ejemplo n.º 1
0
 def __init__(self, name, host, port):
     self.name = name
     self.host = host
     self.port = port
     ClientKatCPProtocol.__init__(self)
     self.requests = []
     self.sensors = {}
     self.state = self.UNSYNCED
Ejemplo n.º 2
0
 def connectionLost(self, failure):
     self.state = self.UNSYNCED
     ClientKatCPProtocol.connectionLost(self, failure)
     if not self.stopping:
         reactor.callLater(self.proxy.CONN_DELAY_TIMEOUT,
                           self.schedule_resyncing)