Exemplo n.º 1
0
 def stop(self):
     for device in self.devices.values():
         if device.state != device.UNSYNCED:
             device.stopping = True
             device.stop()
             device.transport.loseConnection(None)
     DeviceServer.stop(self)
Exemplo n.º 2
0
 def stop(self):
     for device in self.devices.values():
         if device.state != device.UNSYNCED:
             device.stopping = True
             device.stop()
             device.transport.loseConnection()
     DeviceServer.stop(self)
Exemplo n.º 3
0
 def __init__(self, *args, **kwds):
     DeviceServer.__init__(self, *args, **kwds)
     self.addr_mapping = {}
     self.client_factory = ClientDeviceFactory(self.addr_mapping,
                                               self.MAX_RECONNECTS,
                                               self.CONN_DELAY_TIMEOUT,
                                               self)
     self.ready_devices = 0
     self.devices = {}
     self.setup_devices()
     self.scan_called = False
Exemplo n.º 4
0
 def __init__(self, *args, **kwds):
     DeviceServer.__init__(self, *args, **kwds)
     self.addr_mapping = {}
     self.client_factory = ClientDeviceFactory(self.addr_mapping,
                                               self.MAX_RECONNECTS,
                                               self.CONN_DELAY_TIMEOUT,
                                               self)
     self.ready_devices = 0
     self.devices = {}
     self.setup_devices()
     self.scan_called = False