From 1e751a5eb3c23d932b5de94456b5a8741f28c7cc Mon Sep 17 00:00:00 2001 From: mrDarker <mr.darker@163.com> Date: 星期六, 16 八月 2025 17:37:49 +0800 Subject: [PATCH] 1. 修复离线测试设置错误的扫描个数,应该设置的是需要扫描的个数(非相机个数) --- EdgeInspector_App/WebSocket/WebSocketClientPool.h | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/EdgeInspector_App/WebSocket/WebSocketClientPool.h b/EdgeInspector_App/WebSocket/WebSocketClientPool.h index 21357e9..464df79 100644 --- a/EdgeInspector_App/WebSocket/WebSocketClientPool.h +++ b/EdgeInspector_App/WebSocket/WebSocketClientPool.h @@ -1,4 +1,4 @@ -#ifndef WEBSOCKETCLIENTWITHPOOL_H +锘�#ifndef WEBSOCKETCLIENTWITHPOOL_H #define WEBSOCKETCLIENTWITHPOOL_H //#include "WebSocketClient.h" @@ -9,33 +9,33 @@ // explicit WebSocketClientPool(size_t thread_count); // ~WebSocketClientPool(); // -// // 初始化客户端 +// // 鍒濆鍖栧鎴风 // void init_clients(const std::vector<std::string>& uris); // -// // 退出所有客户端 +// // 閫�鍑烘墍鏈夊鎴风 // void exit_clients(); // -// // 使用线程池发送消息 +// // 浣跨敤绾跨▼姹犲彂閫佹秷鎭� // void post_to_all(const std::string& message); // void post_binary_to_all(const std::vector<char>& binary_data); // -// // 从池中选择一个空闲的客户端进行发送,不需要服务器响应 +// // 浠庢睜涓�夋嫨涓�涓┖闂茬殑瀹㈡埛绔繘琛屽彂閫侊紝涓嶉渶瑕佹湇鍔″櫒鍝嶅簲 // bool post_to_idle_client(const std::string& message); // bool post_binary_to_idle_client(const std::vector<char>& binary_data); // -// // 从池中选择一个空闲的客户端进行发送,并需要服务器响应 +// // 浠庢睜涓�夋嫨涓�涓┖闂茬殑瀹㈡埛绔繘琛屽彂閫侊紝骞堕渶瑕佹湇鍔″櫒鍝嶅簲 // bool send_to_idle_client(const std::string& message, int timeout_ms); // bool send_binary_to_idle_client(const std::vector<char>& binary_data, int timeout_ms); // -// // 从池中选择一个空闲的客户端进行发送,并等待服务器响应 +// // 浠庢睜涓�夋嫨涓�涓┖闂茬殑瀹㈡埛绔繘琛屽彂閫侊紝骞剁瓑寰呮湇鍔″櫒鍝嶅簲 // bool send_to_idle_client_and_wait(const std::string& message, int timeout_ms); // bool send_binary_to_idle_client_and_wait(const std::vector<char>& binary_data, int timeout_ms); // -// // 从池中选择一个空闲的客户端进行发送,并等待服务器响应,如果超时则重试 +// // 浠庢睜涓�夋嫨涓�涓┖闂茬殑瀹㈡埛绔繘琛屽彂閫侊紝骞剁瓑寰呮湇鍔″櫒鍝嶅簲锛屽鏋滆秴鏃跺垯閲嶈瘯 // bool send_to_idle_client_with_retry(const std::string& message, int total_timeout_ms, int retry_interval_ms); // bool send_binary_to_idle_client_with_retry(std::vector<char>&& binary_data, int total_timeout_ms, int retry_interval_ms); // -// // 设置 WebSocket 客户端事件处理程序 +// // 璁剧疆 WebSocket 瀹㈡埛绔簨浠跺鐞嗙▼搴� // void set_open_handler(WebSocketClient::OpenHandler handler); // void set_message_handler(WebSocketClient::MessageHandler handler); // void set_close_handler(WebSocketClient::CloseHandler handler); -- Gitblit v1.9.3