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

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

// 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();
// 启动 HTTP 服务端(阻塞运行直到进程退出/失败)。
// POST json:body 与 TCP 协议消息相同(不带结尾 '>'),响应同 TCP(不带 '>')。
// 需在 WSAStartup、load_config、radar_mgr.init() 之后调用。
void run_http_server();
#endif // TCP_SERVER_H