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.

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