Пример #1
0
def remove_tcp_map(server_port):
    current_app.proxy_execute(current_app.proxy_api.REMOVE_TCP_MAP, server_port)
    return str(True)
Пример #2
0
def pause_udp_map(server_port):
    current_app.proxy_execute(current_app.proxy_api.PAUSE_UDP_MAP, server_port)
    return str(True)
Пример #3
0
def resume_client(client_id):
    current_app.proxy_execute(current_app.proxy_api.RESUME_CLIENT, client_id)
    return str(True)
Пример #4
0
def remove_client(client_id):
    current_app.proxy_execute(current_app.proxy_api.REMOVE_CLIENT, client_id)
    return str(True)
Пример #5
0
def pause_client(client_id):
    current_app.proxy_execute(current_app.proxy_api.PAUSE_CLIENT, client_id)
    return str(True)
Пример #6
0
def restart_server():
    if current_app.proxy_is_running():
        current_app.proxy_execute(current_app.proxy_api.SHUTDOWN_SERVER)
    current_app.proxy_execute(current_app.proxy_api.STARTUP_SERVER)
    return str(True)
Пример #7
0
def stop_server():
    current_app.proxy_execute(current_app.proxy_api.SHUTDOWN_SERVER)
    return str(True)
Пример #8
0
def start_server():
    current_app.proxy_execute(current_app.proxy_api.STARTUP_SERVER)
    return str(True)
Пример #9
0
def resume_udp_map(server_port):
    current_app.proxy_execute(current_app.proxy_api.RESUME_UDP_MAP, server_port)
    return str(True)