def server(self, host, port):
        'Acts as a server for receiving connections.'
        sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        sock.bind((host, port))
        sock.listen(5)
        while True:
            thread.start_new_thread(self.client, (sock.accept()[0],))
Acts as a server for receiving connections.
recipes/Python/496872_zservicepy/recipe-496872.py