def spawn_connection(self, rport): lport = randint(1024, 65535) conn = Connection(self.lhost, self.rhost, lport, rport) conn_handler = ConnectionHandler(conn, self.outp_queue, self.res_queue) self.conns[conn] = conn_handler logger.debug("Starting new handler thread for connection: %s" % (conn)) conn_handler.start()
def spawn_connection(self, rport): lport = random.randint(1024, 65535) conn = Connection(self.lhost, self.rhost, lport, rport) conn_handler = ConnectionHandler(conn, self.outp_queue, self.res_queue) self.conns[conn] = conn_handler conn_handler.start()