def run(self):<EOL>
self._run = True<EOL>self.server.listen(<NUM_LIT:5>)<EOL>logger.info(<EOL>"<STR_LIT>".format(<EOL>self.ip_address or "<STR_LIT:localhost>", self.port<EOL>)<EOL>)<EOL>while self._run:<EOL><INDENT>ready, _, _ = select.select([self.server], [], [], <NUM_LIT:0.1>)<EOL>if ready:<EOL><INDENT>try:<EOL><INDENT>client, address = self.server.accept()<EOL><DEDENT>except:<EOL><INDENT>continue<EOL><DEDENT>logger.info("<STR_LIT>".format(*address))<EOL>client_thread = AdsClientConnection(<EOL>handler=self.handler, client=client, address=address, server=self<EOL>)<EOL>client_thread.daemon = True<EOL>client_thread.start()<EOL>self.clients.append(client_thread)<EOL><DEDENT><DEDENT>
Listen for incoming connections from clients.