Files
TLS/README.md
huanglinhuan 63273630b3 first commit
2025-10-09 10:05:40 +08:00

20 lines
679 B
Markdown
Raw 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.

#编译
##服务端编译命令
g++ -o tls_server tls_server.cpp -lssl -lcrypto
./tls_server
##客户端命令
客户端运行在ue使用Makefile交叉编译
运行实例:
# 1. 基本调试(推荐用于诊断延迟)
./tls_client.bin -h 183.238.13.170 -p 7271 -c client.crt -k client.key -x -d 1
# 2. 详细调试查看SSL状态
./tls_client.bin -h 183.238.13.170 -p 7271 -c client.crt -k client.key -x -d 2
# 3. 完整调试(查看所有消息)
./tls_client.bin -h 183.238.13.170 -p 7271 -c client.crt -k client.key -x -d 3
# 5. 循环测试10次每次间隔2秒
./tls_client.bin -h 183.238.13.170 -p 7271 -c client.crt -k client.key -x -t 3 -n 10 -i 2