def remove_tcp_map(server_port): current_app.proxy_execute(current_app.proxy_api.REMOVE_TCP_MAP, server_port) return str(True)
def pause_udp_map(server_port): current_app.proxy_execute(current_app.proxy_api.PAUSE_UDP_MAP, server_port) return str(True)
def resume_client(client_id): current_app.proxy_execute(current_app.proxy_api.RESUME_CLIENT, client_id) return str(True)
def remove_client(client_id): current_app.proxy_execute(current_app.proxy_api.REMOVE_CLIENT, client_id) return str(True)
def pause_client(client_id): current_app.proxy_execute(current_app.proxy_api.PAUSE_CLIENT, client_id) return str(True)
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)
def stop_server(): current_app.proxy_execute(current_app.proxy_api.SHUTDOWN_SERVER) return str(True)
def start_server(): current_app.proxy_execute(current_app.proxy_api.STARTUP_SERVER) return str(True)
def resume_udp_map(server_port): current_app.proxy_execute(current_app.proxy_api.RESUME_UDP_MAP, server_port) return str(True)