def get_server(host, port, logRequests=False):
    if host is None: # use localhost as default
        host = 'localhost'
    server = SimpleXMLRPCServer((host, port), logRequests=logRequests)
    port = server.socket.getsockname()[1]
    logging.info("Running XMLRPC server on port %d..." % port)
    return server, port
Parse command line options.
dataset/ETHPy150Open cjlee112/pygr/pygr/coordinator.py/get_server--crossover with--dataset/ETHPy150Open enthought/mayavi/mayavi/scripts/mayavi2.py/MayaviApp.parse_command_line