def sendMessageToMachines(self, address, filepath): username = self.retrieveUser(address) for machine in self.usersToLM[username]: if machine.ipAddress != address: #print 'address is ', address if machine.update: if machine.syncState: moveMessage.sendMessage(filepath,machine.ipAddress,self.send_port) else: machine.syncQueue.put(filepath)
def transmitMessage(self, message): moveMessage.sendMessage(message,self.address,self.port) reactor.run(installSignalHandlers=0)
def transmitDelete(self, source): filePath = 'delete' + source moveMessage.sendMessage(filePath,self.address,self.port) # print 'Dialing on port',self.port,'..' reactor.run(installSignalHandlers=0)