def listen(self):
self._sock.listen(<NUM_LIT:1>)<EOL>while self.starting:<EOL><INDENT>try:<EOL><INDENT>sock, ip = self._sock.accept()<EOL>threading.Thread(target=self.handle, args=(sock,)).start()<EOL><DEDENT>except socket.error:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>
Listen on host:port