https://blog.csdn.net/dotphoenix/article/details/104837258 (server+client)
https://blog.51cto.com/xiaoyaoyou10/5465291
https://blog.51cto.com/u_13999641/5102071 (官方demo运行)
目录
参数说明
https://www.pianshen.com/article/17591306132/
API
Server端
获取客户端信息
- 获取客户端ip
lws_get_peer_simple
交叉编译
这个库在交叉编译时会出现ssh相关的错误。
1)字段‘ctx’具有不完整的类型错误
https://cloud.tencent.com/developer/ask/sof/526731
但是后面编译时还是会出现各种错误,直接把ssl的配置关掉即可:
option(LWS_WITH_SSL "Include SSL support (defaults to OpenSSL or similar, mbedTLS if LWS_WITH_MBEDTLS is set)" OFF)
0 条评论