コード例 #1
0
 def runZoneTransfers(self, nameservers):
     sem = common.getSemaphore()
     deferreds = []
     for ns in nameservers:
         deferreds.append(sem.run(self.tryZoneTransferTCP, ns))
         deferreds.append(sem.run(self.tryZoneTransferUDP, ns))
     dl = defer.DeferredList(deferreds)
     return dl
コード例 #2
0
ファイル: dns.py プロジェクト: patrickmn/scrutinize
 def runZoneTransfers(self, nameservers):
     sem = common.getSemaphore()
     deferreds = []
     for ns in nameservers:
         deferreds.append(sem.run(self.tryZoneTransferTCP, ns))
         deferreds.append(sem.run(self.tryZoneTransferUDP, ns))
     dl = defer.DeferredList(deferreds)
     return dl
コード例 #3
0
ファイル: ports.py プロジェクト: sreeharisj23/scrutinize
 def prepare(self):
     deferreds = []
     sem = common.getSemaphore()
     if isinstance(self.ports, dict):
         self.descriptions = self.ports
         self.ports = self.ports.keys()
     for port in self.ports:
         d = sem.run(self.doFactory, port)
         deferreds.append(d)
     dl = defer.DeferredList(deferreds, consumeErrors=False)
     return dl