inspection-host-computer/server/quic/README.md

22 lines
981 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# CMVR QUIC 接收服务
Node 服务启动时会同时启动 `server/quic/server.py`,在 UDP 5175 上接收
CMVR edge 消息(原有 Web 服务仍使用 TCP 5175)。首次运行先安装 Python 依赖:
```powershell
py -3 -m pip install -r server/quic/requirements.txt
```
可用环境变量:
- `QUIC_ENABLED=false`:不随 Node 启动 QUIC 服务。
- `QUIC_HOST` / `QUIC_PORT`:监听地址和 UDP 端口,默认 `0.0.0.0:5175`。
- `QUIC_CERT_FILE` / `QUIC_KEY_FILE`:TLS 证书和私钥。
- `QUIC_ALPN`:逗号分隔的 ALPN,默认 `cmvr-quic-edge/1`。
- `QUIC_HEARTBEAT_INTERVAL_MS`:注册响应下发的心跳周期,默认 5000。
- `QUIC_PYTHON`:Python 可执行文件路径。
控制消息以 JSON 行输出到服务日志。注册和心跳消息会分别得到
`NodeRegisterResponse` 和 `NodeHeartbeatAck` 回复。媒体 DATAGRAM 的 64 字节
CMQD 帧头会被解析,分片完整后以 `media_frame` JSON 事件和 Base64 数据输出。