Example #1
0
 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)
Example #2
0
 def transmitMessage(self, message):
     moveMessage.sendMessage(message,self.address,self.port)
     reactor.run(installSignalHandlers=0)
Example #3
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)