You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
710 B
C

2 months ago
// tcp_server.h - TCP 服务端(新版统一扫描协议)
#ifndef TCP_SERVER_H
#define TCP_SERVER_H
#include "PAVO2_SDK/include/pavo2_driver.h"
// 启动 TCP 服务端(阻塞运行直到进程退出/失败)。
// 需在 WSAStartup、load_config、radar_mgr.init() 之后调用(雷达由 radar_mgr 管理,
// 请求用 "radar" 字段指定雷达,缺省用配置里第一个雷达)。
void run_tcp_server();
2 months ago
// 启动 HTTP 服务端(阻塞运行直到进程退出/失败)。
// POST json:body 与 TCP 协议消息相同(不带结尾 '>'),响应同 TCP(不带 '>')。
// 需在 WSAStartup、load_config、radar_mgr.init() 之后调用。
void run_http_server();
2 months ago
#endif // TCP_SERVER_H