The thread class which stores the constants for each thread.
| 761 | |
| 762 | |
| 763 | class ZgrabThread(threading.Thread): |
| 764 | """ |
| 765 | The thread class which stores the constants for each thread. |
| 766 | """ |
| 767 | |
| 768 | def __init__(self, thread_id, q, port, command, zones_struct, zgrab_collection): |
| 769 | threading.Thread.__init__(self) |
| 770 | self.thread_id = thread_id |
| 771 | self.port = port |
| 772 | self.zones_struct = zones_struct |
| 773 | self.zgrab_collection = zgrab_collection |
| 774 | self.run_command = command |
| 775 | self.q = q |
| 776 | self.logger = LoggingUtil.create_log(__name__) |
| 777 | |
| 778 | def run(self): |
| 779 | self.logger.debug("Starting Thread-" + str(self.thread_id)) |
| 780 | process_data( |
| 781 | self.logger, |
| 782 | self.thread_id, |
| 783 | self.q, |
| 784 | self.port, |
| 785 | self.run_command, |
| 786 | self.zones_struct, |
| 787 | self.zgrab_collection, |
| 788 | ) |
| 789 | self.logger.debug("Exiting Thread-" + str(self.thread_id)) |
| 790 | |
| 791 | |
| 792 | def check_save_location(save_location): |