def createserver(host="127.0.0.1", port=10123, 
    handler_factory=bjsonrpc.handlers.NullHandler,
    sock=None, http=False):
    """
        Creates a *bjson.server.Server* object linked to a listening socket.